Run set-fontset-font only if available

#4026
This commit is contained in:
jupl 2015-12-02 07:29:29 -05:00 committed by syl20bnr
parent 7e60d534d8
commit f9293cb190
1 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
option key to type common characters.")
;; Use the OS X Emoji font for Emoticons
(set-fontset-font "fontset-default"
'(#x1F600 . #x1F64F)
(font-spec :name "Apple Color Emoji") nil 'prepend)
(when (fboundp 'set-fontset-font)
(set-fontset-font "fontset-default"
'(#x1F600 . #x1F64F)
(font-spec :name "Apple Color Emoji") nil 'prepend))