summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-06-20 14:06:01 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-20 14:06:01 -0700
commit135d8b827ebc6926bd0ab7ab4b812b299c124570 (patch)
tree9c2d8e19965b4121e35d1de5cec280c56f3e2985 /emacs
parentfix(aspell): add a new word (diff)
downloademacs.d-135d8b827ebc6926bd0ab7ab4b812b299c124570.tar.gz
feat(prog): use nixpkgs-fmt to format nix code
This is the tool recommend by the nix community to format nix code (see
[1]).

[1] https://github.com/nix-community/nixpkgs-fmt
Diffstat (limited to 'emacs')
-rw-r--r--emacs/custom/my-prog.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el
index c63af84..97eec00 100644
--- a/emacs/custom/my-prog.el
+++ b/emacs/custom/my-prog.el
@@ -95,6 +95,7 @@
   (add-hook hook 'turn-on-eldoc-mode))
 
 ;; format nix buffers on save
+(customize-set-variable 'nix-nixfmt-bin "nixpkgs-fmt")
 (add-hook 'before-save-hook 'nix-format-before-save)
 
 ;; List of settings for gopls: