From a164dfa7428d37e017c6838bb9decadea493485f Mon Sep 17 00:00:00 2001 From: Dylan Clark Date: Mon, 2 Nov 2015 16:02:22 -0800 Subject: [PATCH] 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. --- core/prelude-osx.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/prelude-osx.el b/core/prelude-osx.el index 397a83c..c618aaa 100644 --- a/core/prelude-osx.el +++ b/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