1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-29 19:47:45 +00:00

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.
This commit is contained in:
Michael Utz 2024-04-26 10:30:14 +03:00 committed by Kevin Amado
parent e53c2c6c6c
commit 98556f8ecb

View file

@ -5,5 +5,13 @@ In order to configure Alejandra in
just use the following:
```lisp
(set-formatter! 'alejandra "alejandra --quiet" :modes '(nix-mode))
(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:
```lisp
(setq-hook! 'nix-mode-hook +format-with-lsp nil)
```