Compare commits

..

3 commits

Author SHA1 Message Date
715e6a7114 reverted the emoji setting calling (with focus-in-hook) 2023-10-03 12:06:04 +08:00
Jason TIAN
78fec507a8 Add advice to set emoji font when cnfonts-mode is activated 2023-10-03 11:40:21 +08:00
Jason TIAN
475d74834d Refactor emoji font setting and hook in init-display.el
- Remove direct call to my-set-emoji-font
- Add hook to set emoji font on focus-in event
2023-10-03 10:57:43 +08:00

View file

@ -147,11 +147,14 @@
((member "Symbola" (font-family-list)) "Symbola")
((message "No emoji font found."))
)) ; http://xahlee.info/comp/unicode_font_download.html
(remove-hook 'focus-in-hook #'my-set-emoji-font)
)
(message "set-fontset-font is not available in current %s" emacs-version))
)
(my-set-emoji-font)
(add-hook 'focus-in-hook #'my-set-emoji-font)
;; END: display the emojis }}