summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMartin Tournoij <martin@arp242.net>2017-12-23 13:13:55 +0000
committerMartin Tournoij <martin@arp242.net>2018-03-17 18:24:38 +0000
commit302f69e933b85628c688a1b16eab5dd2e7976e99 (patch)
treee27cb56d84dbe449fff9e3514c87e600feecf849 /README.md
parent92e6e4d1ba482a4d2d89d850f660c67ccf8a28eb (diff)
downloadale-302f69e933b85628c688a1b16eab5dd2e7976e99.zip
Add ALEFixPre and ALEFixPost events
To run autocmd before and after every fix cycle. Fixes #623 (`ALELintPre` was added in #1203).
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index d5335e2a..1e5a725f 100644
--- a/README.md
+++ b/README.md
@@ -502,15 +502,17 @@ Will give you:
### 5.viii. How can I execute some code when ALE starts or stops linting?
ALE runs its own [autocmd](http://vimdoc.sourceforge.net/htmldoc/autocmd.html)
-events whenever has a linter is started and has been successfully executed and
-processed. These events can be used to call arbitrary functions before and after
-ALE stops linting.
+events when a lint or fix cycle are started and stopped. These events can be
+used to call arbitrary functions before and after ALE stops linting.
```vim
augroup YourGroup
autocmd!
autocmd User ALELintPre call YourFunction()
autocmd User ALELintPost call YourFunction()
+
+ autocmd User ALEFixPre call YourFunction()
+ autocmd User ALEFixPost call YourFunction()
augroup END
```