A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
:
. 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-emoji
to the company-backends (although I guess the layer should probably do that for you).
company-emoji-init
in 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-mode
followed by company-emoji-init
, and it worked :rocket:
user-config
:(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
additional-packages
(restclient-jq :location (recipe
:fetcher github
:repo "pashky/restclient.el"))
require
or use-package
it
;;;
instead of two