summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/emacs/init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index e0b4d24d..5292d85b 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1038,6 +1038,13 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :config (progn
             (setq format-all-show-errors 'never)))
 
+(use-package apheleia
+  :config (progn
+            (setf (alist-get 'shfmt apheleia-formatters)
+                  '("shfmt")))
+  :init (progn
+          (apheleia-global-mode +1)))
+
 ;;; E-mail
 
 (declare-function sendmail-send-it "sendmail")