Run set-fontset-font
only if it is available (for emoji layer)
This commit is contained in:
parent
7818fa3ccf
commit
f2e4b8d377
|
@ -1365,6 +1365,8 @@ Other:
|
|||
- Added support for Emoji fonts on macOS and Linux (thanks to CodeFalling)
|
||||
- Setup =emojify= cache directory (thanks to Boris Buliga)
|
||||
- Hide mode-line indicator: =emoji= (thanks to duianto)
|
||||
- Prevented =set-fontset-font= from being set in Emacs without a window system
|
||||
(thanks to NicholasTD07k)
|
||||
**** ERC
|
||||
- Key bindings:
|
||||
- ~SPC m b~ to switch between ERC buffers (thanks to Evan Klitzke)
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
;; Mac OS X and using the Cocoa version of Emacs
|
||||
(defun spacemacs//set-emoji-font (frame)
|
||||
"Adjust the font settings of FRAME so Emacs can display emoji properly."
|
||||
(when (fboundp 'set-fontset-font)
|
||||
(cond
|
||||
((spacemacs/system-is-mac)
|
||||
(set-fontset-font t 'symbol
|
||||
|
@ -21,7 +22,7 @@
|
|||
((spacemacs/system-is-linux)
|
||||
(set-fontset-font t 'symbol
|
||||
(font-spec :family "Symbola")
|
||||
frame 'prepend))))
|
||||
frame 'prepend)))))
|
||||
|
||||
(defun spacemacs//set-emoji-font-for-current-frame ()
|
||||
"Adjust the font settings of current frame so Emacs can display emoji
|
||||
|
|
Loading…
Reference in a new issue