complete-computing-environment/company-emoji.org

993 B

dunn/company-emoji: company-mode backend for emoji

I like having Emoji in my system.

(use-package company-emoji
  :init
  (add-to-list 'company-backends 'company-emoji)
  :config
  (defun cce/set-emoji-font (frame)
    "Adjust the font settings of FRAME so Emacs can display emoji properly."
    (if (eq system-type 'darwin)
        (set-fontset-font t 'symbol (font-spec :family "Apple Color Emoji") frame 'prepend)
      (set-fontset-font t 'symbol (font-spec :family "Noto Emoji") frame 'prepend)))
  (cce/set-emoji-font nil)
  (add-hook 'after-make-frame-functions 'cce/set-emoji-font))

Noto is installed through NixOS's Font Configuration

🐶 💯 😹