SPC h d K
:. To make it insert unicode, we should create an alist mapping from shortcodes to unicode. Then it would be quite easy to add the extra step to translate the shortcode to unicode automatically.
company-emojito the company-backends (although I guess the layer should probably do that for you).
company-emoji-initin various buffers (it seems to be buffer-local?). In an elisp and Python buffer, it worked out of the box: I get a completion dropdown and the Unicode emoji is inserted when selected. When composing a commit message in magit, there was no dropdown to begin with. AFAIU this was because completion was not enabled. I ran
company-emoji-init, and it worked :rocket:
(add-hook 'text-mode-hook #'company-mode) (add-hook 'text-mode-hook #'company-emoji-init) (defun spacemacs/emoji-insert-and-possibly-complete (_) "Use company-emoji to complete 'to' unicode." (when company-emoji-insert-unicode (delete-char -1) (company-complete))) (advice-add 'emoji-cheat-sheet-plus--insert-selection :after #'spacemacs/emoji-insert-and-possibly-complete)
SPC i e
(restclient-jq :location (recipe :fetcher github :repo "pashky/restclient.el"))