Better enh-ruby-mode suport in doom/describe-module & editorconfig
+ Associates enh-ruby-mode with :lang ruby for doom/describe-module + Enables editorconfig to detect extension-less or file-less ruby files (from shebang lines or file local variables).
This commit is contained in:
parent
22a94fc41a
commit
1b172e9f43
2 changed files with 7 additions and 5 deletions
|
@ -28,6 +28,7 @@
|
||||||
(python-mode :lang python)
|
(python-mode :lang python)
|
||||||
(restclient-mode :lang rest)
|
(restclient-mode :lang rest)
|
||||||
(ruby-mode :lang ruby)
|
(ruby-mode :lang ruby)
|
||||||
|
(enh-ruby-mode :lang ruby)
|
||||||
(rust-mode :lang rust)
|
(rust-mode :lang rust)
|
||||||
(scala-mode :lang scala)
|
(scala-mode :lang scala)
|
||||||
(sh-mode :lang sh)
|
(sh-mode :lang sh)
|
||||||
|
|
|
@ -5,11 +5,12 @@
|
||||||
;; 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")
|
'((sh-mode . "sh")
|
||||||
(python-mode . "py")
|
(python-mode . "py")
|
||||||
(ruby-mode . "rb")
|
(ruby-mode . "rb")
|
||||||
(perl-mode . "pl")
|
(enh-ruby-mode . "rb")
|
||||||
(php-mode . "php"))
|
(perl-mode . "pl")
|
||||||
|
(php-mode . "php"))
|
||||||
"An alist mapping major modes to extensions. Used by
|
"An alist mapping major modes to extensions. Used by
|
||||||
`doom*editorconfig-smart-detection' to give editorconfig filetype hints.")
|
`doom*editorconfig-smart-detection' to give editorconfig filetype hints.")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue