compat editorconfig become built-in package
This commit is contained in:
1 file changed
+2
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
(defun creature/editorconfig-setup ()
|
(defun creature/editorconfig-setup ()
|
||||||
(editorconfig-mode 1)
|
(editorconfig-mode 1)
|
||||||
|
(unless (fboundp 'editorconfig-mode-apply)
|
||||||
|
(require 'editorconfig-tools))
|
||||||
;; 修复通过打开文件启动该插件时打开的文件缩进配置不对
|
;; 修复通过打开文件启动该插件时打开的文件缩进配置不对
|
||||||
(editorconfig-mode-apply)
|
(editorconfig-mode-apply)
|
||||||
(remove-hook 'find-file-hook #'creature/editorconfig-setup)
|
(remove-hook 'find-file-hook #'creature/editorconfig-setup)
|
||||||
|
|||||||
Reference in new issue
Block a user