diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-29 00:48:14 +0100 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-02-29 00:48:14 +0100 |
commit | b907e992668522f01a4dfa504af8551316a954f8 (patch) | |
tree | c186e965c096c1a840308fe701a6abae8bd855d3 /dotfiles | |
parent | Dotfiles: Emacs: Open dashboard with emacsclient (diff) | |
download | nixos-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/.emacs | 6 |
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))) ) ) |