编译27时候要有--with-cairo选项。
然后设置字体
(defsubst walle-ui-display-color-emoji? ()
"Return non-nil if emacs can display color emoji.
Notice that this function assume you have graphics display."
(or (and (>= emacs-major-version 27)
(featurep 'cairo)
(memq 'ftcrhb (frame-parameter (selected-frame) 'font-backend)))
(featurep 'cocoa)))
(when (walle-ui-display-color-emoji?)
(set-fontset-font t 'symbol (font-spec :family "Noto Color Emoji")
nil 'prepend))
Mac的话 @LdBeth 说macport早就有了,应该不用特意弄