about summary refs log tree commit diff
path: root/dotfiles
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-02-29 00:48:14 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-02-29 00:48:14 +0100
commitb907e992668522f01a4dfa504af8551316a954f8 (patch)
treec186e965c096c1a840308fe701a6abae8bd855d3 /dotfiles
parentDotfiles: Emacs: Open dashboard with emacsclient (diff)
downloadnixos-config-b907e992668522f01a4dfa504af8551316a954f8.tar.gz
nixos-config-b907e992668522f01a4dfa504af8551316a954f8.tar.bz2
nixos-config-b907e992668522f01a4dfa504af8551316a954f8.zip
Dotfiles: Emacs: Only set font if exists
Diffstat (limited to '')
-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)))
   )
 )