Skip to content

Instantly share code, notes, and snippets.

@idcrook
Last active May 7, 2019 18:49
Show Gist options
  • Save idcrook/9eef475e0addc019f241850d92cfd763 to your computer and use it in GitHub Desktop.
Save idcrook/9eef475e0addc019f241850d92cfd763 to your computer and use it in GitHub Desktop.
macOS emacs emoji font settings

Reference for https://idcrook.github.io/emacs27-from-homebrew-on-macos-with-emoji/

From elisp/base-platforms.el#L167-L174

       ;;; Useful for https://github.com/dunn/company-emoji
       ;; https://www.reddit.com/r/emacs/comments/8ph0hq/i_have_converted_from_the_mac_port_to_the_ns_port/
       ;; not tested with emacs26 (requires a patched Emacs version for multi-color font support)
       (if (version< "27.0" emacs-version)
           (set-fontset-font
            "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend)
         (set-fontset-font
          t 'symbol (font-spec :family "Apple Color Emoji") nil 'prepend))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment