diff options
author | William Carroll <wpcarro@gmail.com> | 2020-03-04T19·25+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-04T19·49+0000 |
commit | dec005ea34c620d7d3df81791ba7d303d45e2882 (patch) | |
tree | a37135bcf197ede69589f46922fde0402ba95387 /emacs/.emacs.d/wpc/wpc-nix.el | |
parent | b0dfa088a504facf9354b7d1cd4be6141c857796 (diff) |
Consume top-level emacs attribute
Refactor `nix/rebuild-emacs` to consume newly defined top-level emacs attribute.
Diffstat (limited to 'emacs/.emacs.d/wpc/wpc-nix.el')
-rw-r--r-- | emacs/.emacs.d/wpc/wpc-nix.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-nix.el b/emacs/.emacs.d/wpc/wpc-nix.el index 15806e042fd3..b259a66b8955 100644 --- a/emacs/.emacs.d/wpc/wpc-nix.el +++ b/emacs/.emacs.d/wpc/wpc-nix.el @@ -21,12 +21,13 @@ (use-package nix-mode :mode "\\.nix\\'") +;; TODO(wpcarro): Ensure the sub-process can resolve <briefcase>. (defun nix/rebuild-emacs () "Use nix-env to rebuild wpcarros-emacs." (interactive) - (start-process "nix-build/<briefcase>.emacs" "*nix-build/<briefcase>.emacs*" - "nix-env" "-f" (f-join (getenv "BRIEFCASE") "emacs") "-i") - (display-buffer "*nix-build/<briefcase>.emacs*")) + (start-process "nix-build/<briefcase/emacs>" "*nix-build/<briefcase/emacs>*" + "nix-env" "-f" "<briefcase>" "-iA" "emacs") + (display-buffer "*nix-build/<briefcase/emacs>*")) (defun nix/sly-from-briefcase (attribute) "Start a Sly REPL configured with a Lisp matching a derivation |