diff options
| author | Franck Cuny <franckcuny@gmail.com> | 2016-02-14 13:17:46 -0800 |
|---|---|---|
| committer | Franck Cuny <franckcuny@gmail.com> | 2016-02-14 13:17:46 -0800 |
| commit | e9dd81d6d2db74a9f0c6fbe630b453a9caf2083d (patch) | |
| tree | 7304e11c94a03a7edee65c186378bf0a489539a7 | |
| parent | [emacs] Binding to switch to the scratch buffer (diff) | |
| download | emacs.d-e9dd81d6d2db74a9f0c6fbe630b453a9caf2083d.tar.gz | |
[emacs] Add a few configuration files to sh-mode.
| -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))))) |
