branch: scratch/editorconfig-cc
commit 956c0320e23c245c81c5cf025972aab47ebc8b00
Author: 10sr <8.slas...@gmail.com>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Update hook docstrings (#215)
    
    #214
---
 editorconfig.el | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/editorconfig.el b/editorconfig.el
index e45c914678..9c7d2154c8 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -121,7 +121,10 @@ show line numbers on the left:
     '(lambda (props)
        (let ((show-line-num (gethash 'emacs_linum props)))
          (cond ((equal show-line-num \"true\") (linum-mode 1))
-           ((equal show-line-num \"false\") (linum-mode 0))))))"
+           ((equal show-line-num \"false\") (linum-mode 0))))))
+
+This hook will be run even when there are no matching sections in
+\".editorconfig\", or no \".editorconfig\" file was found at all."
   :type 'hook
   :group 'editorconfig)
 (define-obsolete-variable-alias
@@ -147,7 +150,10 @@ overwrite \"indent_style\" property when current 
`major-mode' is a
   (add-hook 'editorconfig-hack-properties-functions
             '(lambda (props)
                (when (derived-mode-p 'makefile-mode)
-                 (puthash 'indent_style \"tab\" props))))"
+                 (puthash 'indent_style \"tab\" props))))
+
+This hook will be run even when there are no matching sections in
+\".editorconfig\", or no \".editorconfig\" file was found at all."
   :type 'hook
   :group 'editorconfig)
 

Reply via email to