lang/sh: append "/bin/*" rule in auto-mode-alist
It's too aggressive. Rather, it should be a fallback.
This commit is contained in:
parent
b24d7506e6
commit
5cc0e92a48
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@
|
||||||
(use-package! sh-script ; built-in
|
(use-package! sh-script ; built-in
|
||||||
:mode ("\\.zunit\\'" . sh-mode)
|
:mode ("\\.zunit\\'" . sh-mode)
|
||||||
:mode ("/bspwmrc\\'" . sh-mode)
|
:mode ("/bspwmrc\\'" . sh-mode)
|
||||||
:mode ("/bin/[^/]+\\'" . sh-mode)
|
:init
|
||||||
|
(add-to-list 'auto-mode-alist '("/bin/[^/]+\\'" . sh-mode) 'append)
|
||||||
:config
|
:config
|
||||||
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
||||||
(set-repl-handler! 'sh-mode #'+sh/open-repl)
|
(set-repl-handler! 'sh-mode #'+sh/open-repl)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue