summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2022-10-16 23:29:56 +0200
committerAlan Pearce2022-10-16 23:50:03 +0200
commit82cd148ed09ff40fa765ca2d12e5d1b2d3b8a194 (patch)
tree8883cc39b8416267e2715bdad8eafaa835f596b4 /user/emacs
parent300a10e626e2bf3dc40863d79fd71c29f603ef32 (diff)
downloadnixfiles-82cd148ed09ff40fa765ca2d12e5d1b2d3b8a194.tar.lz
nixfiles-82cd148ed09ff40fa765ca2d12e5d1b2d3b8a194.tar.zst
nixfiles-82cd148ed09ff40fa765ca2d12e5d1b2d3b8a194.zip
Use alejandra instead of nixfmt
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 948bfa6a..e0b4d24d 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -795,10 +795,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 ;;;; nix
 (with-eval-after-load 'nix-mode
   (setq nix-mode-use-smie t
-        nix-indent-function #'smie-indent-line)
-  (general-add-hook 'nix-mode-hook
-                    (lambda ()
-                      (add-hook 'before-save-hook #'nix-mode-format 0 'local))))
+        nix-indent-function #'smie-indent-line))
 
 (use-package nix-update
   :commands (nix-update-fetch))