summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2022-10-17 11:40:00 +0200
committerAlan Pearce2022-10-17 11:40:00 +0200
commit2040d0cc03954bf620b18bb11515173932444c89 (patch)
tree6fd3df76a448c63daa5fab0c8c63dad6e2fedb32 /user
parent10731104d210e82a20d337eeebc636d9fe59456f (diff)
downloadnixfiles-2040d0cc03954bf620b18bb11515173932444c89.tar.lz
nixfiles-2040d0cc03954bf620b18bb11515173932444c89.tar.zst
nixfiles-2040d0cc03954bf620b18bb11515173932444c89.zip
Emacs: configure apheleia
Diffstat (limited to 'user')
-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")