From 135d8b827ebc6926bd0ab7ab4b812b299c124570 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 20 Jun 2022 14:06:01 -0700 Subject: 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 --- emacs/custom/my-prog.el | 1 + 1 file changed, 1 insertion(+) (limited to 'emacs/custom') 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: -- cgit 1.4.1