diff --git a/emacs/.emacs.d/wpc/wpc-nix.el b/emacs/.emacs.d/wpc/wpc-nix.el index 7407e02bf..15806e042 100644 --- a/emacs/.emacs.d/wpc/wpc-nix.el +++ b/emacs/.emacs.d/wpc/wpc-nix.el @@ -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/.emacs" "*nix-build/.emacs*" + "nix-env" "-f" (f-join (getenv "BRIEFCASE") "emacs") "-i") + (display-buffer "*nix-build/.emacs*")) + (defun nix/sly-from-briefcase (attribute) "Start a Sly REPL configured with a Lisp matching a derivation from my monorepo.