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
|
||||
;; 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.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue