From 9065c575aa2ee33bde4d80ab465cc65428bd8763 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 31 Aug 2020 12:08:30 +0100 Subject: [PATCH] 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. --- emacs/.emacs.d/wpc/wpc-ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/wpc/wpc-ui.el b/emacs/.emacs.d/wpc/wpc-ui.el index 7258f9889..059bd17ce 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