summary refs log tree commit diff
path: root/emacs.d/modes/lang-shell.el
blob: 7d1ec0c2e37f9b0b50d84e2940de9fc8f952003b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)))))