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

    Fix hack-properties-functions example
---
 README.md             | 2 +-
 doc/editorconfig.texi | 2 +-
 editorconfig.el       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index ccf034c9b8..9989969e46 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@ overwrite \"indent_style\" property when current `major-mode` 
is a
 ``` emacs-lisp
 (add-hook 'editorconfig-hack-properties-functions
           '(lambda (props)
-             (when (derived-mode-p makefile-mode)
+             (when (derived-mode-p 'makefile-mode)
                (puthash 'indent_style "tab" props))))
 
 ```
diff --git a/doc/editorconfig.texi b/doc/editorconfig.texi
index 630e17f12e..9c83613e20 100644
--- a/doc/editorconfig.texi
+++ b/doc/editorconfig.texi
@@ -172,7 +172,7 @@ a @code{makefile-mode} with following code:
 @verbatim
 (add-hook 'editorconfig-hack-properties-functions
           '(lambda (props)
-             (when (derived-mode-p makefile-mode)
+             (when (derived-mode-p 'makefile-mode)
                (puthash 'indent_style "tab" props))))
 @end verbatim
 
diff --git a/editorconfig.el b/editorconfig.el
index c1238ffbc5..857e34e92a 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -127,7 +127,7 @@ overwrite \"indent_style\" property when current 
`major-mode' is a
 
   (add-hook 'editorconfig-hack-properties-functions
             '(lambda (props)
-               (when (derived-mode-p makefile-mode)
+               (when (derived-mode-p 'makefile-mode)
                  (puthash 'indent_style \"tab\" props))))"
   :type 'hook
   :group 'editorconfig)

Reply via email to