tools/editorconfig: detect elisp & js shell scripts
(And sort +editorconfig-mode-alist alphabetically)
This commit is contained in:
parent
1694641636
commit
6fab07a2e7
1 changed files with 8 additions and 6 deletions
|
@ -5,12 +5,14 @@
|
||||||
;; major mode to drop editorconfig a hint? This is accomplished by temporarily
|
;; major mode to drop editorconfig a hint? This is accomplished by temporarily
|
||||||
;; appending an extension to `buffer-file-name' when we talk to editorconfig.
|
;; appending an extension to `buffer-file-name' when we talk to editorconfig.
|
||||||
(defvar +editorconfig-mode-alist
|
(defvar +editorconfig-mode-alist
|
||||||
'((sh-mode . "sh")
|
'((emacs-lisp-mode . "el")
|
||||||
(python-mode . "py")
|
(enh-ruby-mode . "rb")
|
||||||
(ruby-mode . "rb")
|
(js2-mode . "js")
|
||||||
(enh-ruby-mode . "rb")
|
(perl-mode . "pl")
|
||||||
(perl-mode . "pl")
|
(php-mode . "php")
|
||||||
(php-mode . "php"))
|
(python-mode . "py")
|
||||||
|
(ruby-mode . "rb")
|
||||||
|
(sh-mode . "sh"))
|
||||||
"An alist mapping major modes to extensions. Used by
|
"An alist mapping major modes to extensions. Used by
|
||||||
`doom--editorconfig-smart-detection-a' to give editorconfig filetype hints.")
|
`doom--editorconfig-smart-detection-a' to give editorconfig filetype hints.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue