all repos — nixfiles @ 2040d0cc03954bf620b18bb11515173932444c89

System and user configuration, managed by nix and home-manager

Emacs: configure apheleia
Alan Pearce alan@alanpearce.eu
Mon, 17 Oct 2022 11:40:00 +0200
commit

2040d0cc03954bf620b18bb11515173932444c89

parent

10731104d210e82a20d337eeebc636d9fe59456f

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1038,6 +1038,13 @@ typescript-mode-hook) #'format-all-ensure-formatter)   :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")