about summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-31T11·08+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-31T11·08+0100
commit9065c575aa2ee33bde4d80ab465cc65428bd8763 (patch)
treed66fee63b2698415617c8bbb1feb672a064757b3 /emacs
parent70d87eaf24bd0ed3cd254f3350467b9354178cd0 (diff)
Prevent all-the-icons-install-fonts from running in CI
While I would like my CI build to closely resemble a non-CI build, supporting
the `all-the-icons-install-fonts` call is a low priority with a medium amount of
work required.
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/wpc/wpc-ui.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-ui.el b/emacs/.emacs.d/wpc/wpc-ui.el
index 7258f9889140..059bd17ce610 100644
--- a/emacs/.emacs.d/wpc/wpc-ui.el
+++ b/emacs/.emacs.d/wpc/wpc-ui.el
@@ -10,6 +10,7 @@
 ;; Dependencies
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+(require 'constants)
 (require 'prelude)
 (require 'alist)
 (require 'fonts)
@@ -115,8 +116,9 @@
 ;; all-the-icons
 (use-package all-the-icons
   :config
-  (unless (f-exists? "~/.local/share/fonts/all-the-icons.ttf")
-    (all-the-icons-install-fonts t)))
+  (when (not constants/ci?)
+    (unless (f-exists? "~/.local/share/fonts/all-the-icons.ttf")
+      (all-the-icons-install-fonts t))))
 
 ;; icons for Ivy
 (use-package all-the-icons-ivy