spacemacs/layers/+fun/emoji
Daniel Nicolai 9803b60d64 Fix (activate) company-emoji completion
Currently company-emoji does not get activated by the emoji layer.
Also when it is activated, then the emoji short-name does not get completed to
unicode if `company-emoji-insert-unicode` is `t`.

This commit fixes both issues, by activating company-emoji for text-modes and
advising the emoji inert function to optionally do company-emoji completion.
2021-09-17 21:22:56 +02:00
..
img
funcs.el Fix (activate) company-emoji completion 2021-09-17 21:22:56 +02:00
packages.el Fix (activate) company-emoji completion 2021-09-17 21:22:56 +02:00
README.org Fix (activate) company-emoji completion 2021-09-17 21:22:56 +02:00

Emoji layer

/TakeV/spacemacs/media/commit/9803b60d644d1e79aab92a47cc90ffab3df2f2f7/layers/+fun/emoji/img/emojis.png

Description

This layer adds support for Emoji emoticons from emoji-cheat-sheet.

Features:

  • Browse Emoji in a dedicated buffer
  • Display Emoji images in buffer
  • Insert one or several Emoji with a helm front-end
  • Completion of Emojis using company-emoji

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add emoji to the existing dotspacemacs-configuration-layers list in this file.

Linux user could install Symbola font to get company-emoji support with apt-get

  apt-get install ttf-ancient-fonts

Configuration

Unicode or short-names

By default, company-emoji is configured only for text-mode and inserts unicode. To insert short-names set company-emoji-insert-unicode to nil as follows:

  (auto-completion :variables
                   company-emoji-insert-unicode nil)

Key bindings

Key binding Description
SPC a f e open a dedicated buffer to browse Emoji
SPC i e insert Emoji via a helm buffer

Emoji dedicated buffer

Key binding Description
RET copy current Emoji code
q quit