[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proper way to add bindings under C-x 8
From: |
Howard Melman |
Subject: |
Re: Proper way to add bindings under C-x 8 |
Date: |
Sat, 10 Apr 2021 17:35:07 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) |
Eli Zaretskii <eliz@gnu.org> writes:
>> 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.
Great, that worked just fine. Shouldn't it be mentioned in
one of the manuals? The preferred idioms for customizing
other keys are.
--
Howard