1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 03:27:44 +00:00
alejandra/integrations/doom-emacs/README.md
Michael Utz 98556f8ecb Update instructions for Doom Emacs
Ensure that it plays well with the nix modules installed already. Additionally, the syntax for shell commands with arguments has changed slightly.
2024-04-28 13:36:08 -06:00

393 B

Doom Emacs integration

In order to configure Alejandra in Doom Emacs just use the following:

(after! nix-mode
  (set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode)))

If you've enabled formatting via LSP in Nix, you might also need to add the following:

(setq-hook! 'nix-mode-hook +format-with-lsp nil)