[Emacs] Fix imalison:goto-nixpkgs

This commit is contained in:
Ivan Malison 2023-08-19 23:37:04 -06:00
parent 2ea2071dd5
commit 6100e6d5a8

View File

@ -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 '<nixpkgs>' --impure")
(find-file ))
(find-file (s-trim
(shell-command-to-string "nix eval -I \"$NIX_PATH\" --expr '<nixpkgs>' --impure"))))
:config
(progn
(setq nix-indent-function 'nix-indent-line)))