branch: scratch/editorconfig-cc
commit 4a509abae711626f4caa2c950f0cfdce4eb70a8d
Author: Hong Xu <h...@topbug.net>
Commit: Stefan Monnier <monn...@iro.umontreal.ca>

    Rename editorconfig-find-file-hook to editorconfig-apply
---
 editorconfig.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/editorconfig.el b/editorconfig.el
index fa178cda6f..3b9d408352 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -201,7 +201,7 @@ NOTE: Only the **buffer local** value of VARIABLE will be 
set."
       "Unable to find editorconfig executable.")
     nil))
 
-(defun editorconfig-find-file-hook ()
+(defun editorconfig-apply ()
   (let ((props (and (functionp editorconfig-get-properties-function)
                  (funcall editorconfig-get-properties-function))))
     (if props
@@ -218,9 +218,9 @@ NOTE: Only the **buffer local** value of VARIABLE will be 
set."
   :lighter ""
   (if editorconfig-mode
     (add-hook 'find-file-hook
-      'editorconfig-find-file-hook)
+      'editorconfig-apply)
     (remove-hook 'find-file-hook
-      'editorconfig-find-file-hook)))
+      'editorconfig-apply)))
 
 ;;;###autoload
 (add-to-list 'auto-mode-alist '("/\\.editorconfig\\'" . conf-unix-mode))

Reply via email to