re-enabled the emoji set-fontset-font config

This commit is contained in:
Jason Tian 2023-08-29 17:32:25 +08:00
parent 4621d64cec
commit a8ab9dbdec

View file

@ -31,29 +31,30 @@
;; https://stackoverflow.com/questions/50417/how-do-i-get-list-of-recent-files-in-gnu-emacs/50422#50422 ;; https://stackoverflow.com/questions/50417/how-do-i-get-list-of-recent-files-in-gnu-emacs/50422#50422
(recentf-mode 1) (recentf-mode 1)
;; 2023/08/29 enable this and this needs further investigation...
;; FIXME: to be fixed (GitHub Actions Pipeline). See error below, ;; FIXME: to be fixed (GitHub Actions Pipeline). See error below,
;; Debugger entered--Lisp error: (void-function set-fontset-font) ;; Debugger entered--Lisp error: (void-function set-fontset-font)
;; (progn (progn
;; ;; set font for emoji (if before emacs 28, should come after setting ;; set font for emoji (if before emacs 28, should come after setting
;; ;; symbols. emacs 28 now has 'emoji . before, emoji is part of 'symbol) ;; symbols. emacs 28 now has 'emoji . before, emoji is part of 'symbol)
;; ;; http://xahlee.info/emacs/emacs/emacs_set_font_emoji.html ;; http://xahlee.info/emacs/emacs/emacs_set_font_emoji.html
;; (set-fontset-font (set-fontset-font
;; t t
;; (if (version< emacs-version "28.1") (if (version< emacs-version "28.1")
;; '(#x1f300 . #x1fad0) '(#x1f300 . #x1fad0)
;; 'emoji 'emoji
;; ) )
;; (cond (cond
;; ((member "Apple Color Emoji" (font-family-list)) "Apple Color Emoji") ((member "Apple Color Emoji" (font-family-list)) "Apple Color Emoji")
;; ((member "Noto Color Emoji" (font-family-list)) "Noto Color Emoji") ((member "Noto Color Emoji" (font-family-list)) "Noto Color Emoji")
;; ;;<2022-10-31 NotoColorEmoji uses the CBDT/CBLC color font format, which is ;;<2022-10-31 NotoColorEmoji uses the CBDT/CBLC color font format, which is
;; ;; supported by Android and Chrome/Chromium OS. Windows supports it starting ;; supported by Android and Chrome/Chromium OS. Windows supports it starting
;; ;; with Windows 10 Anniversary Update in Chrome and Edge. ;; with Windows 10 Anniversary Update in Chrome and Edge.
;; ;; Via https://github.com/googlefonts/noto-emoji/blob/f826707b28355f6cd1593f504427ca2b1f6c4c19/README.md#using-notocoloremoji ;; Via https://github.com/googlefonts/noto-emoji/blob/f826707b28355f6cd1593f504427ca2b1f6c4c19/README.md#using-notocoloremoji
;; ((member "Noto Emoji" (font-family-list)) "Noto Emoji") ((member "Noto Emoji" (font-family-list)) "Noto Emoji")
;; ((member "Segoe UI Emoji" (font-family-list)) "Segoe UI Emoji") ((member "Segoe UI Emoji" (font-family-list)) "Segoe UI Emoji")
;; ((member "Symbola" (font-family-list)) "Symbola"))) ; http://xahlee.info/comp/unicode_font_download.html ((member "Symbola" (font-family-list)) "Symbola"))) ; http://xahlee.info/comp/unicode_font_download.html
;; ) )
(when (display-graphic-p) (when (display-graphic-p)
(my-check-for-font "Symbola" "Symbola font is not installed, however, it is recommended to install for proper emoji display. Press ENTER to continue.")) (my-check-for-font "Symbola" "Symbola font is not installed, however, it is recommended to install for proper emoji display. Press ENTER to continue."))