all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Proper way to add bindings under C-x 8
@ 2021-04-10 16:57 Howard Melman
  2021-04-10 17:41 ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Howard Melman @ 2021-04-10 16:57 UTC (permalink / raw)
  To: help-gnu-emacs


I'd like to add some things to the `C-x 8' prefix and am
curious as to the proper way to do it.  I'm interested in
adding more fractions similar to `C-x 8 1 / 2' and in adding
another prefix for my commonly used emojis as `C-x 8 e ...'

With a normal keymap I know I could do something like this:

    (global-set-key (kbd "C-x 8 1 / 5") (lambda () (interactive) (insert "⅕")))
    (global-set-key (kbd "C-x 8 e c") (lambda () (interactive) (insert "✅")))

But C-x 8 uses iso-transl-ctl-x-8-map which is some kind of
special translation map which I'm a bit vague about.  Also
there's some magic described in iso-transl.el about allowing
Alt to work as well.

The elisp manual doesn't mention C-x 8 stuff at all, and
that seems to be by design based on bug #594.  The emacs
manual mentions how to use it but not how to extend it. I
feel like customizing it should be described some place.

-- 

Howard




^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-12-02 16:48 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-10 16:57 Proper way to add bindings under C-x 8 Howard Melman
2021-04-10 17:41 ` Eli Zaretskii
2021-04-10 21:35   ` Howard Melman
2021-04-11  6:45     ` Eli Zaretskii
2021-11-29 16:21       ` Howard Melman
2021-11-30 11:34         ` Michael Heerdegen
2021-11-30 12:39           ` Robert Pluim
2021-11-30 13:07             ` Michael Heerdegen
2021-11-30 13:39               ` Robert Pluim
2021-11-30 16:32             ` Howard Melman
2021-11-30 16:49               ` Robert Pluim
2021-11-30 17:25                 ` Eli Zaretskii
2021-11-30 17:39                   ` Robert Pluim
2021-11-30 17:43                     ` Howard Melman
2021-12-02 10:26                       ` Robert Pluim
2021-12-02 14:44                         ` Michael Heerdegen
2021-12-02 15:03                           ` Robert Pluim
2021-12-02 15:27                             ` Michael Heerdegen
2021-12-02 15:56                               ` Robert Pluim
2021-12-02 16:18                                 ` Michael Heerdegen
2021-12-02 16:48                                   ` Robert Pluim
2021-11-30 16:43         ` Robert Pluim
2021-11-30 17:29           ` Howard Melman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.