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:
parent
e53c2c6c6c
commit
98556f8ecb
1 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue