summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-02-14 13:17:46 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-02-14 13:17:46 -0800
commite9dd81d6d2db74a9f0c6fbe630b453a9caf2083d (patch)
tree7304e11c94a03a7edee65c186378bf0a489539a7 /emacs.d
parent[emacs] Binding to switch to the scratch buffer (diff)
downloademacs.d-e9dd81d6d2db74a9f0c6fbe630b453a9caf2083d.tar.gz
[emacs] Add a few configuration files to sh-mode.
Diffstat (limited to '')
-rw-r--r--emacs.d/modes/lang-shell.el11
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)))))