diff options
Diffstat (limited to 'emacs.d/modules/module-shell.el')
-rw-r--r-- | emacs.d/modules/module-shell.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emacs.d/modules/module-shell.el b/emacs.d/modules/module-shell.el new file mode 100644 index 0000000..763d133 --- /dev/null +++ b/emacs.d/modules/module-shell.el @@ -0,0 +1,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) |