Fix --set-emoji-font so it works without X
This commit is contained in:
parent
6924c2bfdd
commit
1e81fafab6
19
init.el
19
init.el
@ -773,15 +773,16 @@
|
||||
;; https://zhm.github.io/symbola/
|
||||
(defun --set-emoji-font (frame)
|
||||
"Adjust the font setting of FRAME so Emacs can display Emoji properly."
|
||||
(if (eq system-type 'darwin)
|
||||
;; For NS/Cocoa
|
||||
(set-fontset-font t 'symbol
|
||||
(font-spec :family "Apple Color Emoji")
|
||||
frame 'prepend)
|
||||
;; For Linux
|
||||
(set-fontset-font t 'symbol
|
||||
(font-spec :family "Symbola")
|
||||
frame 'prepend)))
|
||||
(when (fboundp 'set-fontset-font)
|
||||
(if (eq system-type 'darwin)
|
||||
;; For NS/Cocoa
|
||||
(set-fontset-font t 'symbol
|
||||
(font-spec :family "Apple Color Emoji")
|
||||
frame 'prepend)
|
||||
;; For Linux
|
||||
(set-fontset-ont t 'symbol
|
||||
(font-spec :family "Symbola")
|
||||
frame 'prepend))))
|
||||
|
||||
(use-package company-emoji
|
||||
:ensure t
|
||||
|
Loading…
Reference in New Issue
Block a user