From e9dd81d6d2db74a9f0c6fbe630b453a9caf2083d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 14 Feb 2016 13:17:46 -0800 Subject: [emacs] Add a few configuration files to sh-mode. --- emacs.d/modes/lang-shell.el | 11 +++++++++++ 1 file changed, 11 insertions(+) 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))))) -- cgit 1.4.1