about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-nix.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-nix.el b/.emacs.d/lisp/init-nix.el
index b4cf0fe..c92ef0b 100644
--- a/.emacs.d/lisp/init-nix.el
+++ b/.emacs.d/lisp/init-nix.el
@@ -5,6 +5,9 @@
 (use-package nix-mode
   :commands nix-repl-show)
 
+(use-package nixfmt
+  :hook (nix-mode . nixfmt-on-save-mode))
+
 (use-package nix-update
   :commands nix-update-fetch)