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
This commit is contained in:
William Carroll 2020-08-25 14:19:19 +01:00
parent 21ce27b0ca
commit 8eed16dc67
4 changed files with 17 additions and 10 deletions

View file

@ -21,6 +21,7 @@
(require 'list)
(require 'string)
(require 'set)
(require 'constants)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Constants
@ -60,7 +61,7 @@ Otherwise, open with `counsel-find-file'."
:path "~/depot"
:kbd "t")
(make-bookmark :label "briefcase"
:path (getenv "BRIEFCASE")
:path constants/briefcase
:kbd "b")
(make-bookmark :label "current project"
:path constants/current-project