diff options
-rw-r--r-- | emacs/init.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el index e740979..00cfd58 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -56,8 +56,11 @@ (set-fontset-font t charset (font-spec :family "Noto Serif CJK SC")))) ;; Prioritise fsd and noto emoji over coloured variants -(when (display-graphic-p) - (set-fontset-font t 'emoji (font-spec :family "FSD Emoji") nil 'prepend) +(when (and (display-graphic-p) + (member "FSD Emoji" (font-family-list))) + (set-fontset-font t 'emoji (font-spec :family "FSD Emoji") nil 'prepend)) +(when (and (display-graphic-p) + (member "Noto Emoji" (font-family-list))) (set-fontset-font t 'emoji (font-spec :family "Noto Emoji") nil 'append)) ;; While we're here, let's set up emoji input. |