fix editorconfig setup bug
This commit is contained in:
1 file changed
+8
-7
@@ -2,15 +2,16 @@
|
|||||||
|
|
||||||
(autoload 'editorconfig-mode "editorconfig" "" t)
|
(autoload 'editorconfig-mode "editorconfig" "" t)
|
||||||
|
|
||||||
(setq creature/editorconfig-timer
|
(defun creature/editorconfig-setup ()
|
||||||
(run-with-idle-timer 5 nil #'editorconfig-mode))
|
(editorconfig-mode 1)
|
||||||
|
(remove-hook 'find-file-hook #'creature/editorconfig-setup)
|
||||||
(add-hook 'find-file-hook #'editorconfig-mode)
|
|
||||||
|
|
||||||
(with-eval-after-load 'editorconfig
|
|
||||||
(remove-hook 'find-file-hook #'editorconfig-mode)
|
|
||||||
(cancel-timer creature/editorconfig-timer)
|
(cancel-timer creature/editorconfig-timer)
|
||||||
(makunbound 'creature/editorconfig-timer))
|
(makunbound 'creature/editorconfig-timer))
|
||||||
|
|
||||||
|
(setq creature/editorconfig-timer
|
||||||
|
(run-with-idle-timer 5 nil #'creature/editorconfig-setup))
|
||||||
|
|
||||||
|
(add-hook 'find-file-hook #'creature/editorconfig-setup)
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-editorconfig)
|
(provide 'init-editorconfig)
|
||||||
Reference in new issue
Block a user