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/
|
;; https://zhm.github.io/symbola/
|
||||||
(defun --set-emoji-font (frame)
|
(defun --set-emoji-font (frame)
|
||||||
"Adjust the font setting of FRAME so Emacs can display Emoji properly."
|
"Adjust the font setting of FRAME so Emacs can display Emoji properly."
|
||||||
(if (eq system-type 'darwin)
|
(when (fboundp 'set-fontset-font)
|
||||||
;; For NS/Cocoa
|
(if (eq system-type 'darwin)
|
||||||
(set-fontset-font t 'symbol
|
;; For NS/Cocoa
|
||||||
(font-spec :family "Apple Color Emoji")
|
(set-fontset-font t 'symbol
|
||||||
frame 'prepend)
|
(font-spec :family "Apple Color Emoji")
|
||||||
;; For Linux
|
frame 'prepend)
|
||||||
(set-fontset-font t 'symbol
|
;; For Linux
|
||||||
(font-spec :family "Symbola")
|
(set-fontset-ont t 'symbol
|
||||||
frame 'prepend)))
|
(font-spec :family "Symbola")
|
||||||
|
frame 'prepend))))
|
||||||
|
|
||||||
(use-package company-emoji
|
(use-package company-emoji
|
||||||
:ensure t
|
:ensure t
|
||||||
|
Loading…
Reference in New Issue
Block a user