emacs: Switch to nixfmt-rfc-style for formatting nix files

This commit is contained in:
Erwin Boskma 2024-02-23 11:35:56 +01:00
parent 10bf3510be
commit 16f0b79fd0
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw
2 changed files with 3 additions and 3 deletions

View file

@ -1514,13 +1514,13 @@ Add [[https://github.com/NixOS/nix-mode][nix-mode]]
:hook (nix-mode . eglot-ensure)) :hook (nix-mode . eglot-ensure))
#+end_src #+end_src
Tell =nil= to use =nixpkgs-fmt= for formatting nix files. Tell =nil= to use =nixfmt= for formatting nix files.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'eglot (with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs (add-to-list 'eglot-server-programs
`(nix-mode . ("nil" :initializationOptions `(nix-mode . ("nil" :initializationOptions
(:formatting (:command ["nixpkgs-fmt"])))))) (:formatting (:command ["nixfmt"]))))))
#+end_src #+end_src
*** Common Lisp *** Common Lisp

View file

@ -195,7 +195,7 @@ in
aspell aspell
lldb lldb
(nil.overrideAttrs (_: { doCheck = false; })) (nil.overrideAttrs (_: { doCheck = false; }))
nixpkgs-fmt nixfmt-rfc-style
python3 python3
] ]
++ (with aspellDicts; [ ++ (with aspellDicts; [