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

Ensure that it plays well with the nix modules installed already. Additionally, the syntax for shell commands with arguments has changed slightly.
17 lines
393 B
Markdown
17 lines
393 B
Markdown
# Doom Emacs integration
|
|
|
|
In order to configure Alejandra in
|
|
[Doom Emacs](https://github.com/hlissner/doom-emacs)
|
|
just use the following:
|
|
|
|
```lisp
|
|
(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)
|
|
```
|