forked from colonelpanic/dotfiles
[Emacs] Fix imalison:goto-nixpkgs
This commit is contained in:
parent
2ea2071dd5
commit
6100e6d5a8
@ -2629,8 +2629,8 @@ eval-last-sexp.
|
|||||||
(setq nix-mode-blacklist '("all-packages.nix" "hackage-packages.nix")))
|
(setq nix-mode-blacklist '("all-packages.nix" "hackage-packages.nix")))
|
||||||
(defun imalison:goto-nixpkgs ()
|
(defun imalison:goto-nixpkgs ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(shell-command-to-string "nix eval --expr '<nixpkgs>' --impure")
|
(find-file (s-trim
|
||||||
(find-file ))
|
(shell-command-to-string "nix eval -I \"$NIX_PATH\" --expr '<nixpkgs>' --impure"))))
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq nix-indent-function 'nix-indent-line)))
|
(setq nix-indent-function 'nix-indent-line)))
|
||||||
|
Loading…
Reference in New Issue
Block a user