From 6100e6d5a89c6ccad94e4cb3bc03df57c9ec6a20 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 19 Aug 2023 23:37:04 -0600 Subject: [PATCH] [Emacs] Fix imalison:goto-nixpkgs --- dotfiles/emacs.d/README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index b8a07b23..3d645d2f 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2629,8 +2629,8 @@ eval-last-sexp. (setq nix-mode-blacklist '("all-packages.nix" "hackage-packages.nix"))) (defun imalison:goto-nixpkgs () (interactive) - (shell-command-to-string "nix eval --expr '' --impure") - (find-file )) + (find-file (s-trim + (shell-command-to-string "nix eval -I \"$NIX_PATH\" --expr '' --impure")))) :config (progn (setq nix-indent-function 'nix-indent-line)))