Skip to content

Commit 98556f8

Browse files
theutzkamadorueda
authored andcommitted
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.
1 parent e53c2c6 commit 98556f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

integrations/doom-emacs/README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@ In order to configure Alejandra in
55
just use the following:
66

77
```lisp
8-
(set-formatter! 'alejandra "alejandra --quiet" :modes '(nix-mode))
8+
(after! nix-mode
9+
(set-formatter! 'alejandra '("alejandra" "--quiet") :modes '(nix-mode)))
10+
```
11+
12+
If you've enabled formatting via LSP in Nix,
13+
you might also need to add the following:
14+
15+
```lisp
16+
(setq-hook! 'nix-mode-hook +format-with-lsp nil)
917
```

0 commit comments

Comments
 (0)