lang/sh: append "/bin/*" rule in auto-mode-alist

It's too aggressive. Rather, it should be a fallback.
This commit is contained in:
Henrik Lissner 2019-07-25 12:17:18 +02:00
parent b24d7506e6
commit 5cc0e92a48
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -13,7 +13,8 @@
(use-package! sh-script ; built-in
:mode ("\\.zunit\\'" . sh-mode)
:mode ("/bspwmrc\\'" . sh-mode)
:mode ("/bin/[^/]+\\'" . sh-mode)
:init
(add-to-list 'auto-mode-alist '("/bin/[^/]+\\'" . sh-mode) 'append)
:config
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
(set-repl-handler! 'sh-mode #'+sh/open-repl)