From 6fab07a2e7ae3bb4a4adb2721c41bb2f016bc03b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 20 Oct 2019 18:55:48 -0400 Subject: [PATCH] tools/editorconfig: detect elisp & js shell scripts (And sort +editorconfig-mode-alist alphabetically) --- modules/tools/editorconfig/config.el | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/tools/editorconfig/config.el b/modules/tools/editorconfig/config.el index 7880c5efb..cecafdc4e 100644 --- a/modules/tools/editorconfig/config.el +++ b/modules/tools/editorconfig/config.el @@ -5,12 +5,14 @@ ;; major mode to drop editorconfig a hint? This is accomplished by temporarily ;; appending an extension to `buffer-file-name' when we talk to editorconfig. (defvar +editorconfig-mode-alist - '((sh-mode . "sh") - (python-mode . "py") - (ruby-mode . "rb") - (enh-ruby-mode . "rb") - (perl-mode . "pl") - (php-mode . "php")) + '((emacs-lisp-mode . "el") + (enh-ruby-mode . "rb") + (js2-mode . "js") + (perl-mode . "pl") + (php-mode . "php") + (python-mode . "py") + (ruby-mode . "rb") + (sh-mode . "sh")) "An alist mapping major modes to extensions. Used by `doom--editorconfig-smart-detection-a' to give editorconfig filetype hints.")