Skip to content

Commit 56120c6

Browse files
committed
Guard set-fontset-font with display-graphic-p
set-fontset-font is unavailable in terminal-only Emacs builds, so calling it unconditionally causes a void-function error in console mode.
1 parent e7ac70c commit 56120c6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/prelude-macos.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ Windows external keyboard from time to time."
6060
(menu-bar-mode +1)
6161

6262
;; Enable emoji, and stop the UI from freezing when trying to display them.
63-
(set-fontset-font t 'unicode "Apple Color Emoji" nil 'prepend)
63+
(when (display-graphic-p)
64+
(set-fontset-font t 'unicode "Apple Color Emoji" nil 'prepend))
6465

6566

6667
(provide 'prelude-macos)

0 commit comments

Comments
 (0)