all repos — nixfiles @ d0b359989fbd84beba5a0a84af899e6840dff580

System and user configuration, managed by nix and home-manager

Emacs: Update flycheck nix wrapper

Alan Pearce
commit

d0b359989fbd84beba5a0a84af899e6840dff580

parent

448c80b4caa62dc2a62ab82ca954ba2e989cd775

1 file changed, 4 insertions(+), 8 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -340,15 +340,11 @@ flycheck-executable-find)
:config (progn (with-eval-after-load 'flycheck (setq flycheck-command-wrapper-function - (lambda (command) - (if (nix-current-sandbox) - (apply 'nix-shell-command (nix-current-sandbox) command) - command)) - flycheck-executable-find (lambda (cmd) - (if (nix-current-sandbox) - (nix-executable-find (nix-current-sandbox) cmd) - (executable-find cmd))))))) + (apply 'nix-shell-command (nix-current-sandbox) + (list (mapconcat 'shell-quote-argument cmd " ")))) + flycheck-executable-find + (lambda (cmd) (nix-executable-find (nix-current-sandbox) cmd)))))) ;;;; Keybindings