diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-31T11·02+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-31T11·02+0100 |
commit | 453596adb2479214f5d8c3ca4ca3998093db04ec (patch) | |
tree | f4c8416d194c276b7bd46359d6613203ad2640b6 /emacs/.emacs.d/wpc | |
parent | 711820411c37c007cb3130764776bd10b2d15105 (diff) |
Define constants/ci?
Create a top-level flag encoding whether or not Emacs is running in CI.
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r-- | emacs/.emacs.d/wpc/constants.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/wpc/constants.el b/emacs/.emacs.d/wpc/constants.el index 50b6cf8882de..7ac49c01c627 100644 --- a/emacs/.emacs.d/wpc/constants.el +++ b/emacs/.emacs.d/wpc/constants.el @@ -12,6 +12,7 @@ (require 'prelude) (require 'f) +(require 'maybe) (prelude/assert (f-exists? (getenv "BRIEFCASE"))) @@ -19,6 +20,10 @@ ;; Configuration ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(defconst constants/ci? + (maybe/some? (getenv "CI")) + "True when Emacs is running in CI.") + (defconst constants/briefcase (getenv "BRIEFCASE") "Path to my monorepo, which various parts of my configuration rely on.") |