tweak(emoji): add emoji-search binding for Emacs 29
The emojify command takes precedence in case users want ASCII/GitHub string completion/insertion. Ref: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29.1#n884
This commit is contained in:
parent
088bd387f6
commit
62074bfcbb
3 changed files with 16 additions and 5 deletions
|
@ -148,7 +148,10 @@
|
||||||
|
|
||||||
;;; <leader> i --- insert
|
;;; <leader> i --- insert
|
||||||
(:prefix-map ("i" . "insert")
|
(:prefix-map ("i" . "insert")
|
||||||
:desc "Emoji" "e" #'emojify-insert-emoji
|
(:when (> emacs-major-version 28)
|
||||||
|
:desc "Emoji" "e" #'emoji-search)
|
||||||
|
(:when (modulep! :ui emoji)
|
||||||
|
:desc "Emoji" "e" #'emojify-insert-emoji)
|
||||||
:desc "Current file name" "f" #'+default/insert-file-path
|
:desc "Current file name" "f" #'+default/insert-file-path
|
||||||
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
||||||
:desc "Snippet" "s" #'yas-insert-snippet
|
:desc "Snippet" "s" #'yas-insert-snippet
|
||||||
|
|
|
@ -496,7 +496,10 @@
|
||||||
|
|
||||||
;;; <leader> i --- insert
|
;;; <leader> i --- insert
|
||||||
(:prefix-map ("i" . "insert")
|
(:prefix-map ("i" . "insert")
|
||||||
:desc "Emoji" "e" #'emojify-insert-emoji
|
(:when (> emacs-major-version 28)
|
||||||
|
:desc "Emoji" "e" #'emoji-search)
|
||||||
|
(:when (modulep! :ui emoji)
|
||||||
|
:desc "Emoji" "e" #'emojify-insert-emoji)
|
||||||
:desc "Current file name" "f" #'+default/insert-file-path
|
:desc "Current file name" "f" #'+default/insert-file-path
|
||||||
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
:desc "Current file path" "F" (cmd!! #'+default/insert-file-path t)
|
||||||
:desc "Evil ex path" "p" (cmd! (evil-ex "R!echo "))
|
:desc "Evil ex path" "p" (cmd! (evil-ex "R!echo "))
|
||||||
|
|
|
@ -4,9 +4,14 @@
|
||||||
#+since: 21.12.0
|
#+since: 21.12.0
|
||||||
|
|
||||||
* Description :unfold:
|
* Description :unfold:
|
||||||
This module gives Emacs the ability to display and insert emojis (ASCII, Github
|
This module can redisplay ASCII/GitHub emoticon strings as corresponding Unicode
|
||||||
style, or unicode styles), as well as convert certain text patterns (e.g.
|
emoji. In addition, a completion command is provided to insert these strings as
|
||||||
=:smile:=) into emojis.
|
well as the typical Unicode representations.
|
||||||
|
|
||||||
|
Note: Emacs 29 provides [[https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29.1#n884][native support]] for inserting Unicode emojis. This module
|
||||||
|
only remains useful if you want ASCII/GitHub emoticon string
|
||||||
|
insertion/conversion or need PNG/ASCII emoji rendering on a system with limited
|
||||||
|
font configuration.
|
||||||
|
|
||||||
** Maintainers
|
** Maintainers
|
||||||
*This module needs a maintainer.* [[doom-contrib-maintainer:][Become a maintainer?]]
|
*This module needs a maintainer.* [[doom-contrib-maintainer:][Become a maintainer?]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue