emacs init: Font for Emoji

By Xah Lee. Date: . Last updated: .

Set Font for emoji

put this in your Emacs Init File:

(progn
  ;; set font for emoji 😂.
  ;; if before emacs 28, this should come after setting symbols.
  ;; because there is no 'emoji group before emacs 28, emoji is considered part of 'symbol.
  ;; emacs 28 now has 'emoji .
  ;; Emacs Init: Font for Emoji
  ;; http://xahlee.info/emacs/emacs/emacs_set_font_emoji.html

  (set-fontset-font
   t
   (if (< emacs-major-version 28)
       '(#x1f300 . #x1fad0) 'emoji)
   (cond
    ;; ((member "Segoe UI Emoji" (font-family-list)) "Segoe UI Emoji")
    ((member "Apple Color Emoji" (font-family-list)) "Apple Color Emoji")
    ((member "Noto Emoji" (font-family-list)) "Noto Emoji")
    ;; 2026-05-23 Noto Color Emoji does not work in emacs on windows
    ((member "Noto Color Emoji" (font-family-list)) "Noto Color Emoji")
    ((member "Symbola" (font-family-list)) "Symbola"))))

emacs set font languages

Emacs and Unicode

File Encoding

Unicode Font Setup

Emacs, font setup