Emacs: xah-insert-unicode ๐
here's a command that lets you insert your own set of unicode characters via a completion.
put this in your Emacs Init File:
(defvar xah-unicode-list nil "A alist. Each item is (prompStr . xString). Used by `xah-insert-unicode'. prompStr is used for prompt. xString is used for insert a unicode. xString can be any string, needs not be a char or emoji. ") (setq xah-unicode-list '( ;; ("smile beaming ๐" . "๐") ("omg ๐" . "๐") ("hug ๐ค" . "๐ค") ("angry ๐ " . "๐ ") ("skull ๐" . "๐") ("heart ๐ฉท" . "๐ฉท") ("thumb up ๐" . "๐") ("thumb down ๐" . "๐") ("glowing star ๐" . "๐") ("star โญ" . "โญ") ("sparkles โจ" . "โจ") ("black star โ " . "โ ") ("tv ๐บ" . "๐บ") ("lotus ๐ชท" . "๐ชท") ("butterfly ๐ฆ" . "๐ฆ") ("LADY bug BEETLE ๐" . "๐") ("checkmark โ " . "โ ") ("new ๐" . "๐") ("rocket ๐" . "๐") ("large circle" . "โญ") ("cross โ" . "โ") ("red triangle ๐บ" . "๐บ") ("diamond ๐ " . "๐ ") ("square โฌ" . "โฌ") ("SMALL ORANGE DIAMOND ๐ธ" . "๐ธ") ("BLACK RIGHT-POINTING TRIANGLE โถ" . "โถ") ("BLACK DIAMOND โ" . "โ") ("script ๐" . "๐") ("package ๐ฆ" . "๐ฆ") ("cursor โฎ" . "โฎ") ("music ๐ต" . "๐ต") ("ok ๐" . "๐") ("dagger โ " . "โ ") ("double dagger โก" . "โก") ("double angle bracket" . "ใใ") ("black lenticular bracket" . "ใใ") ("corner-bracket" . "ใใ") ("tortoise shell bracket" . "ใใ") ("angle bracket" . "ใใ") ("double angle quote" . "ยซยป") ("bullet โข" . "โข") ("fullwidth ampersand ๏ผ" . "๏ผ") ("f hook ฦ" . "ฦ") ("emdash โ" . "โ") ("middle dot ยท" . "ยท") ("...ellipsis โฆ" . "โฆ") ("nbsp non breaking space" . "ย ") ("left arrow โ" . "โ") ("right arrow โ" . "โ") ("up arrow โ" . "โ") ("down arrow โ" . "โ") ("LONG RIGHTWARDS ARROW โถ" . "โถ") ("mapto โฆ" . "โฆ") ;; ))
(defun xah-insert-unicode () "Insert a unicode from a custom list `xah-unicode-list'. URL `http://xahlee.info/emacs/emacs/emacs_insert_unicode.html' Created: 2021-01-05 Version: 2023-09-19" (interactive) (let ((xkey (let ((completion-ignore-case t)) (completing-read "Insert:" xah-unicode-list nil t)))) (insert (cdr (assoc xkey xah-unicode-list)))))