notes from /dev/null

by Charles Choi 최민수


18 Feb 2025

macOS Native Emoji Picking in Emacs from the Edit Menu

The cross-platform Emoji picker (emoji-list) in Emacs is nice. But if you’re on macOS running the NS variant of Emacs, you can use the macOS-native picker which is better (😍). The command to raise this picker is ns-do-show-character-palette.

Unfortunately, this command is not configured to be in the main menu by default. The following Elisp initialization code will rectify that, placing the menu item “Emoji & Symbols” at the bottom of the Edit menu from the main menu. The :visible slot ensures that this will only take effect on NS Emacs.

1
2
3
4
5
(easy-menu-add-item global-map '(menu-bar edit)
                    ["Emoji & Symbols"
                     ns-do-show-character-palette
                     :help "Show macOS Character Palette."
                     :visible (eq window-system 'ns)])

Note that users of the Mitsuharu Yamamoto fork of Emacs (aka Emacs Mac App) don’t have to do this as this behavior is already there. It used to be my daily driver but I switched over to the NS variant with the 29.4 release some time ago because the latter was actively maintained. I suspect (sadly 😞) that the Yamamoto fork is being left to bit-rot which is regrettable as that fork is the superior version when it comes to native macOS integration. With the upcoming Emacs 30 release, I think this will become even more pronounced. I'd be happy to be wrong on this though.

References

emacs

Past Articles

10
FEB
2025

Moment - Thursday February 06, 2025 21:19 PST

Photo taken Thursday February 06, 2025 21:19 PST at 111 Minna.

read more
5
FEB
2025

Elisp Cheatsheet for Python Programmers

Started a WIP cheatsheet showing translations of Python code to Emacs Lisp. Pushing this out in the wild.

read more
30
JAN
2025

Announcing Casual Image

Announcing Casual Image, a re-imagined user interface for Emacs image-mode.

read more
25
JAN
2025

Moment - Saturday January 25, 2025 00:14 PST

Photo taken Saturday January 25, 2025 00:14 PST at at Pop's Bar.

read more
22
JAN
2025

Leaving Instagram

Gonna stop posting photos on Instagram and put them here instead.

read more
21
JAN
2025

Moment - Thursday January 09, 2025 17:40 PST

Photo taken Thursday January 09, 2025 17:40 PST at the Embarcadero.

read more
17
JAN
2025

Finding Text in Files Ergonomically - Announcing recent-rgrep

Announcing recent-rgrep, a script that reorders recursive grep output by recently modified file, descending.

read more
10
JAN
2025

Converting a Markdown Region to Org Revisited

If you find yourself needing to convert Markdown text to Org, this post might be of interest.

read more
30
DEC
2024

Precise Word Spacing in macOS Emacs

If the Emacs command cycle-spacing is TIL to you, consider yourself informed. Here’s how I use it on macOS.

read more

Page 1 / 14   >

 

AboutMastodonBlueskyGitHub

Feeds & TagsGet Captee for macOS

Powered by Pelican