Skip to content

Commit

Permalink
revert: tweak(sh): auto-mode-alist: generalize /*rc rule
Browse files Browse the repository at this point in the history
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: bdc35fa
  • Loading branch information
hlissner committed Dec 5, 2024
1 parent 440b8be commit ba1dca3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lisp/doom-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))


Expand Down
2 changes: 1 addition & 1 deletion modules/lang/sh/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ba1dca3

Please sign in to comment.