diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-25T13·19+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-25T13·19+0100 |
commit | 8eed16dc671f49e8ffcf51557b06a65720bd40d7 (patch) | |
tree | bb41112bc520b89b25b4965cf75a4530281b7456 /emacs/.emacs.d/wpc/wpc-nix.el | |
parent | 21ce27b0ca948ddab2206baf36707d00822e5206 (diff) |
Replace calls to (getenv "BRIEFCASE") with constants/briefcase
I would prefer to define constants/briefcase in terms of `(getenv "BRIEFCASE")` and assert that `(f-exists? (getenv "BRIEFCASE"))`, in one location: constants.el
Diffstat (limited to 'emacs/.emacs.d/wpc/wpc-nix.el')
-rw-r--r-- | emacs/.emacs.d/wpc/wpc-nix.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-nix.el b/emacs/.emacs.d/wpc/wpc-nix.el index 11cf7d9b160c..0967473dd2af 100644 --- a/emacs/.emacs.d/wpc/wpc-nix.el +++ b/emacs/.emacs.d/wpc/wpc-nix.el @@ -9,8 +9,7 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'device) - -(prelude/assert (f-exists? (getenv "BRIEFCASE"))) +(require 'constants) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Library @@ -28,7 +27,7 @@ (bname (format "*%s*" pname))) (start-process pname bname "nix-env" - "-I" (format "briefcase=%s" (getenv "BRIEFCASE")) + "-I" (format "briefcase=%s" constants/briefcase) "-f" "<briefcase>" "-iA" emacs) (display-buffer bname))) |