Don't invoke set-fontset-font if it is void
Prevent Prelude's OS X support from breaking the configuration of users who do not install a Cocoa version of Emacs.
This commit is contained in:
parent
4635797ed5
commit
a164dfa742
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ Windows external keyboard from time to time."
|
|||
(menu-bar-mode +1)
|
||||
|
||||
;; Enable emoji, and stop the UI from freezing when trying to display them.
|
||||
(set-fontset-font t 'unicode "Apple Color Emoji" nil 'prepend)
|
||||
(if (fboundp 'set-fontset-font)
|
||||
(set-fontset-font t 'unicode "Apple Color Emoji" nil 'prepend))
|
||||
|
||||
|
||||
(provide 'prelude-osx)
|
||||
;;; prelude-osx.el ends here
|
||||
|
|
Loading…
Reference in a new issue