Browse Source

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.
custom
Dylan Clark 10 years ago
parent
commit
a164dfa742
  1. 4
      core/prelude-osx.el

4
core/prelude-osx.el

@ -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…
Cancel
Save