about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/.emacs6
1 files changed, 4 insertions, 2 deletions
diff --git a/dotfiles/.emacs b/dotfiles/.emacs
index 10afdce..11a39e4 100644
--- a/dotfiles/.emacs
+++ b/dotfiles/.emacs
@@ -42,9 +42,11 @@
 
 (defun my/setup-font-faces ()
 (when (display-graphic-p)
-  (set-face-attribute 'default nil
+  (cond
+    ((find-font (font-spec :name "Inconsolata LGC Nerd Font 11"))
+      (set-face-attribute 'default nil
                      :font "Inconsolata LGC Nerd Font 11"
-                     :weight 'medium)
+                     :weight 'medium)))
   )
 )