From 98556f8ecb3286e8123286071a307733a99cf763 Mon Sep 17 00:00:00 2001 From: Michael Utz Date: Fri, 26 Apr 2024 10:30:14 +0300 Subject: [PATCH] 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. --- integrations/doom-emacs/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/integrations/doom-emacs/README.md b/integrations/doom-emacs/README.md index e8c9f7b..7c70707 100644 --- a/integrations/doom-emacs/README.md +++ b/integrations/doom-emacs/README.md @@ -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) ```