compat editorconfig become built-in package

This commit is contained in:
zedhugh committed 2024-06-25 01:43:20 +08:00
1 parent 5115df25ed
commit 36c9b489e0
1 file changed
+2
+2
View File
@@ -4,6 +4,8 @@
(defun creature/editorconfig-setup ()
(editorconfig-mode 1)
(unless (fboundp 'editorconfig-mode-apply)
(require 'editorconfig-tools))
;; 修复通过打开文件启动该插件时打开的文件缩进配置不对
(editorconfig-mode-apply)
(remove-hook 'find-file-hook #'creature/editorconfig-setup)