diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-08-23 19:35:05 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-08-23 19:35:05 +0300 |
commit | a58f06080afed6f52cac4715fc07c9c788efff76 (patch) | |
tree | 360134f25214492ef5a5fb8ae54bb2af37690a28 /emacs.d/init.el | |
parent | 53ee25e528cb75694c7948e0aebbde20999e370b (diff) | |
download | liw-dot-files-a58f06080afed6f52cac4715fc07c9c788efff76.tar.gz |
emacs: use package shfmt and save shell scripts when saving
Sponsored-by: author
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r-- | emacs.d/init.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el index b307bdd..b416f21 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -72,6 +72,11 @@ (add-to-list 'auto-mode-alist '("README" . markdown-mode)) (add-to-list 'auto-mode-alist '("\\.mdwn\\'" . markdown-mode))) +;; Major mode for formatting shell scripts. +(use-package shfmt + :config + (add-hook 'sh-mode-hook 'shfmt-on-save-mode)) + ;; Major mode for edit source code in the Rust language. (use-package rustic :ensure |