mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
revert: tweak(sh): auto-mode-alist: generalize /*rc rule
Cast too wide a net; there are likely too many *rc files that shouldn't
be treated as shell scripts.
Besides, there's already a fallback *rc rule for conf-mode in
lisp/doom-editor.el.
Revert: bdc35faff2
This commit is contained in:
@ -249,7 +249,6 @@ tell you about it. Very annoying. This prevents that."
|
||||
(nconc
|
||||
auto-mode-alist
|
||||
'(("/LICENSE\\'" . text-mode)
|
||||
("\\.log\\'" . text-mode)
|
||||
("rc\\'" . conf-mode)))
|
||||
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
(use-package! sh-script ; built-in
|
||||
:mode ("\\.bats\\'" . sh-mode)
|
||||
:mode ("\\.\\(?:zunit\\|env\\)\\'" . sh-mode)
|
||||
:mode ("/[a-z]+rc\\'" . sh-mode)
|
||||
:mode ("/bspwmrc\\'" . sh-mode)
|
||||
:magic ("#compdef " . sh-mode)
|
||||
:config
|
||||
(set-docsets! 'sh-mode "Bash")
|
||||
|
Reference in New Issue
Block a user