From 6afaba6ae8f88bc1beb6f52c5acc319bf6081b36 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 19 Feb 2021 18:40:57 +0900 Subject: [PATCH] Temporarily use editorconfig-2-mode --- emacs.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/emacs.el b/emacs.el index c964e1a..e34ec3e 100644 --- a/emacs.el +++ b/emacs.el @@ -1194,12 +1194,14 @@ THEM are function and its args." (define-key ctl-x-map (kbd "C-r") 'my-counsel-recently) ) -(when (fboundp 'editorconfig-mode) - (add-hook 'after-first-visit-hook - 'editorconfig-mode) - (add-hook 'after-first-visit-hook - 'editorconfig-mode-apply - t)) ;; Do after enabling editorconfig-mode +;; (when (fboundp 'editorconfig-mode) +;; (add-hook 'after-first-visit-hook +;; 'editorconfig-mode) +;; (add-hook 'after-first-visit-hook +;; 'editorconfig-mode-apply +;; t)) ;; Do after enabling editorconfig-mode +(when (eval-and-compile (require 'editorconfig)) + (editorconfig-2-mode 1)) (set-variable 'editorconfig-get-properties-function 'editorconfig-core-get-properties-hash) (set-variable 'editorconfig-mode-lighter "")