branch: scratch/editorconfig-cc commit 4c583b154b6fa7e11743da70475a5edce90f4546 Author: 10sr <8slashes+...@gmail.com> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
Remove find-file-hook --- editorconfig.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/editorconfig.el b/editorconfig.el index 44a4139d93..fc5df275f4 100644 --- a/editorconfig.el +++ b/editorconfig.el @@ -262,9 +262,7 @@ It calls `editorconfig-get-properties-from-exec' if "Toggle EditorConfig feature." :global t :lighter "" - (dolist (hook (list - 'find-file-hook - 'after-change-major-mode-hook)) + (dolist (hook '(after-change-major-mode-hook)) (if editorconfig-mode (add-hook hook 'editorconfig-apply) (remove-hook hook 'editorconfig-apply))))