From 453596adb2479214f5d8c3ca4ca3998093db04ec Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 31 Aug 2020 12:02:04 +0100 Subject: Define constants/ci? Create a top-level flag encoding whether or not Emacs is running in CI. --- emacs/.emacs.d/wpc/constants.el | 5 +++++ 1 file changed, 5 insertions(+) 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.") -- cgit 1.4.1