From e9851dd9bb1e42569f3344cb1557a9dc3a30e128 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Tue, 6 Dec 2022 00:24:23 +0800 Subject: [PATCH] fix incorrect indention of editorconfig when it starting --- lisp/init-editorconfig.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/init-editorconfig.el b/lisp/init-editorconfig.el index 5daf7df..1cd4af6 100644 --- a/lisp/init-editorconfig.el +++ b/lisp/init-editorconfig.el @@ -4,6 +4,8 @@ (defun creature/editorconfig-setup () (editorconfig-mode 1) + ;; 修复通过打开文件启动该插件时打开的文件缩进配置不对 + (editorconfig-mode-apply) (remove-hook 'find-file-hook #'creature/editorconfig-setup) (cancel-timer creature/editorconfig-timer) (makunbound 'creature/editorconfig-timer))