ui/emojis: New module for inserting emojis
Uses the emojify package to enable displaying and inserting emojis. Also adds a new binding "SPC i e" to insert an Emoji. Includes basic docs.
This commit is contained in:
parent
1456108d5b
commit
813804066d
7 changed files with 75 additions and 0 deletions
|
@ -197,6 +197,7 @@ Aesthetic modules that affect the Emacs interface or user experience.
|
||||||
+ [[file:../modules/ui/doom/README.org][doom]] - TODO
|
+ [[file:../modules/ui/doom/README.org][doom]] - TODO
|
||||||
+ [[file:../modules/ui/doom-dashboard/README.org][doom-dashboard]] - TODO
|
+ [[file:../modules/ui/doom-dashboard/README.org][doom-dashboard]] - TODO
|
||||||
+ [[file:../modules/ui/doom-quit/README.org][doom-quit]] - TODO
|
+ [[file:../modules/ui/doom-quit/README.org][doom-quit]] - TODO
|
||||||
|
+ [[file:../modules/ui/emoji/README.org][emoji]] =+ascii +github +unicode= - Adds emoji support to Emacs
|
||||||
+ fill-column - TODO
|
+ fill-column - TODO
|
||||||
+ [[file:../modules/ui/hl-todo/README.org][hl-todo]] - TODO
|
+ [[file:../modules/ui/hl-todo/README.org][hl-todo]] - TODO
|
||||||
+ [[file:../modules/ui/hydra/README.org][hydra]] - TODO
|
+ [[file:../modules/ui/hydra/README.org][hydra]] - TODO
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
doom ; what makes DOOM look the way it does
|
doom ; what makes DOOM look the way it does
|
||||||
doom-dashboard ; a nifty splash screen for Emacs
|
doom-dashboard ; a nifty splash screen for Emacs
|
||||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||||
|
;;(emoji +unicode) ; 🙂
|
||||||
;;fill-column ; a `fill-column' indicator
|
;;fill-column ; a `fill-column' indicator
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;hydra
|
;;hydra
|
||||||
|
|
|
@ -124,6 +124,7 @@
|
||||||
|
|
||||||
;;; <leader> i --- insert
|
;;; <leader> i --- insert
|
||||||
(:prefix-map ("i" . "insert")
|
(:prefix-map ("i" . "insert")
|
||||||
|
: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
|
||||||
|
|
|
@ -451,6 +451,7 @@
|
||||||
|
|
||||||
;;; <leader> i --- insert
|
;;; <leader> i --- insert
|
||||||
(:prefix-map ("i" . "insert")
|
(:prefix-map ("i" . "insert")
|
||||||
|
: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 "))
|
||||||
|
|
56
modules/ui/emoji/README.org
Normal file
56
modules/ui/emoji/README.org
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
#+TITLE: ui/emoji
|
||||||
|
#+DATE: September 30, 2020
|
||||||
|
#+SINCE: v2.0.10
|
||||||
|
#+STARTUP: inlineimages nofold
|
||||||
|
|
||||||
|
* Table of Contents :TOC_3:noexport:
|
||||||
|
- [[#description][Description]]
|
||||||
|
- [[#maintainers][Maintainers]]
|
||||||
|
- [[#module-flags][Module Flags]]
|
||||||
|
- [[#plugins][Plugins]]
|
||||||
|
- [[#prerequisites][Prerequisites]]
|
||||||
|
- [[#features][Features]]
|
||||||
|
- [[#configuration][Configuration]]
|
||||||
|
- [[#troubleshooting][Troubleshooting]]
|
||||||
|
|
||||||
|
* Description
|
||||||
|
Displays and inserts emojis (ASCII, Github style, unicode).
|
||||||
|
|
||||||
|
+ Converts recognized text to emojis.
|
||||||
|
+ Enables inserting emojis.
|
||||||
|
|
||||||
|
** Maintainers
|
||||||
|
This module has no dedicated maintainers.
|
||||||
|
|
||||||
|
** Module Flags
|
||||||
|
+ =+ascii= Include plain text emojis like =:)=.
|
||||||
|
+ =+github= Include Github-style emojis like =:smile:=.
|
||||||
|
+ =+unicode= Include unicode emojis like 🙂.
|
||||||
|
|
||||||
|
** Plugins
|
||||||
|
+ [[https://github.com/iqbalansari/emacs-emojify][emojify]] by @iqbalansari
|
||||||
|
|
||||||
|
* Prerequisites
|
||||||
|
|
||||||
|
See the [[https://github.com/iqbalansari/emacs-emojify/blob/master/README.org#requirements][emojify requirements]] docs:
|
||||||
|
|
||||||
|
#+BEGIN_QUOTE
|
||||||
|
The [[https://github.com/iqbalansari/emacs-emojify][emojify]] package requires Emacs *v24.3* and above. Emacs should be compiled
|
||||||
|
with support for *PNG* images to display emojis as images. It is *recommended*
|
||||||
|
that Emacs is compiled with *ImageMagick* support. ~emojify~ will use it to
|
||||||
|
resize emojis if needed, additionally imagemagick is used to set background
|
||||||
|
color for emojis to workaround the bug described in [[https://github.com/iqbalansari/emacs-emojify/issues/7][issue 7]]. However these are
|
||||||
|
*completely optional*.
|
||||||
|
|
||||||
|
PNG support might require some additional steps to on Windows, you might find
|
||||||
|
[[http://stackoverflow.com/questions/2650041/emacs-under-windows-and-png-files][this]] stackoverflow answer helpful.
|
||||||
|
#+END_QUOTE
|
||||||
|
|
||||||
|
* TODO Features
|
||||||
|
# An in-depth list of features, how to use them, and their dependencies.
|
||||||
|
|
||||||
|
* TODO Configuration
|
||||||
|
# How to configure this module, including common problems and how to address them.
|
||||||
|
|
||||||
|
* TODO Troubleshooting
|
||||||
|
# Common issues and their solution, or places to look for help.
|
11
modules/ui/emoji/config.el
Normal file
11
modules/ui/emoji/config.el
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
;;; ui/emoji/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(use-package! emojify
|
||||||
|
:hook (doom-first-buffer . global-emojify-mode)
|
||||||
|
:config
|
||||||
|
(setq emojify-styles
|
||||||
|
(delq
|
||||||
|
nil (list (if (featurep! +ascii) 'ascii)
|
||||||
|
(if (featurep! +github) 'github)
|
||||||
|
(if (featurep! +unicode) 'unicode))))
|
||||||
|
(emojify-set-emoji-styles emojify-styles))
|
4
modules/ui/emoji/packages.el
Normal file
4
modules/ui/emoji/packages.el
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
;; -*- no-byte-compile: t; -*-
|
||||||
|
;;; ui/emoji/packages.el
|
||||||
|
|
||||||
|
(package! emojify :pin "d886069974d05c8c15654204f9afeaee962f3e7d")
|
Loading…
Add table
Add a link
Reference in a new issue