branch: scratch/editorconfig-cc
commit 5f5cad1ee4d300bfa4ac8462ddea24762e647180
Author: 10sr <[email protected]>
Commit: Stefan Monnier <[email protected]>
Update README.md for hook name change
---
README.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 71f1824503..e18ebccb8a 100644
--- a/README.md
+++ b/README.md
@@ -41,9 +41,11 @@ future updates. When both are specified, `file_type_ext`
takes precedence.
## Customize
-### `editorconfig-custom-hooks`
+### `editorconfig-after-apply-functions`
-A list of custom hooks after loading common EditorConfig settings, where you
can
+(Formerly `editorconfig-custom-hooks`)
+
+A list of functions after loading common EditorConfig settings, where you can
set some custom variables or overwrite existing properties.
For example, `web-mode` has several variables for indentation offset size and
@@ -51,7 +53,7 @@ EditorConfig sets them at once by `indent_size`. You may want
to stop indenting
only blocks of `web-mode`: it can be achieved by adding following to your
init.el:
```emacs-lisp
-(add-hook 'editorconfig-custom-hooks
+(add-hook 'editorconfig-after-apply-functions
(lambda (hash) (setq web-mode-block-padding 0)))
```