Support emacs fn for rebuilding wpcarros-emacs

Call `M-x` `nix/rebuild-emacs` to build and link `wpcarros-emacs`.
This commit is contained in:
William Carroll 2020-02-02 13:45:06 +00:00
parent 2cfcb1c34d
commit ffbe5c9757

View file

@ -21,6 +21,13 @@
(use-package nix-mode
:mode "\\.nix\\'")
(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*"))
(defun nix/sly-from-briefcase (attribute)
"Start a Sly REPL configured with a Lisp matching a derivation
from my monorepo.