summary refs log tree commit diff
path: root/emacs.d/modules/module-shell.el
blob: 763d133d32df4b5579a4448003e3dee7c54448d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(require 'config-package)

(use-package sh-script
  ;; configuration to interact with shell scripts
  :mode ("bashrc" . sh-mode)

  :config
  (defun set-sh-mode-indent ()
    (setq sh-basic-offset 2
          sh-indentation 2))
  (add-hook 'sh-mode-hook 'set-sh-mode-indent)
  (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p))

(provide 'module-shell)