From b907e992668522f01a4dfa504af8551316a954f8 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Thu, 29 Feb 2024 00:48:14 +0100 Subject: Dotfiles: Emacs: Only set font if exists --- dotfiles/.emacs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'dotfiles/.emacs') 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))) ) ) -- cgit 1.4.1