help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to add bindings under C-x 8


From: Eli Zaretskii
Subject: Re: Proper way to add bindings under C-x 8
Date: Sat, 10 Apr 2021 20:41:30 +0300

> From: Howard Melman <hmelman@gmail.com>
> Date: Sat, 10 Apr 2021 12:57:15 -0400
> 
> 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 "✅")))

I think you want to use iso-transl-define-keys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]