diff options
Diffstat (limited to 'emacs.d/modes')
-rw-r--r-- | emacs.d/modes/lang-shell.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/modes/lang-shell.el b/emacs.d/modes/lang-shell.el index aa3fab5..7d1ec0c 100644 --- a/emacs.d/modes/lang-shell.el +++ b/emacs.d/modes/lang-shell.el @@ -1,3 +1,14 @@ (setq-default sh-basic-offset 2 sh-indentation 2) + +(use-package sh-script + :ensure t + :init + (progn + (dolist (pattern '("\\.bash_local\\'" + "\\.bash_profile\\'" + "\\.bash_login\\'" + "\\.bash_logout\\'" + "\\.bashrc\\'")) + (add-to-list 'auto-mode-alist (cons pattern 'sh-mode))))) |