From 75f1eb3ab8f97e2347a665cb2158ae09276e4f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellis=20Keny=C5=91?= Date: Wed, 20 Jan 2021 16:23:36 +0000 Subject: [PATCH 1/2] Auto-install the fonts if they don't exist Install the fonts as early as possible, but only if they haven't already been downloaded. --- init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index ff71102..4a58176 100644 --- a/init.el +++ b/init.el @@ -116,7 +116,10 @@ (use-package doom-themes :init (load-theme 'doom-palenight t)) -(use-package all-the-icons) +(use-package all-the-icons + :init + (unless (member "all-the-icons" (font-family-list)) + (all-the-icons-install-fonts t))) (use-package doom-modeline :init (doom-modeline-mode 1) From 5ad094903669db2d5dbb8bf4a2dc7632976bcb5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellis=20Keny=C5=91?= Date: Wed, 20 Jan 2021 16:41:43 +0000 Subject: [PATCH 2/2] Only install if running in GUI mode --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 4a58176..74997de 100644 --- a/init.el +++ b/init.el @@ -118,7 +118,8 @@ (use-package all-the-icons :init - (unless (member "all-the-icons" (font-family-list)) + (when (and (not (member "all-the-icons" (font-family-list))) + (window-system)) (all-the-icons-install-fonts t))) (use-package doom-modeline