about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/bookmark.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-25T13·19+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-25T13·19+0100
commit8eed16dc671f49e8ffcf51557b06a65720bd40d7 (patch)
treebb41112bc520b89b25b4965cf75a4530281b7456 /emacs/.emacs.d/wpc/bookmark.el
parent21ce27b0ca948ddab2206baf36707d00822e5206 (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/bookmark.el')
-rw-r--r--emacs/.emacs.d/wpc/bookmark.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/wpc/bookmark.el b/emacs/.emacs.d/wpc/bookmark.el
index 3b5312819b50..c0c41b5b4dd8 100644
--- a/emacs/.emacs.d/wpc/bookmark.el
+++ b/emacs/.emacs.d/wpc/bookmark.el
@@ -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