Skip to main content
Share Your Experience: Take the 2024 Developer Survey
2 votes
Accepted

How do I remove the key translation for function keys with modifiers?

(define-key my-keymap (kbd "<S-F2>") #'my-function) describe-key reports: "<f2> (translated from <S-f2>) <S-F2> is not <S-f2> Note that define-key doesn'...
phils's user avatar
  • 51.6k
2 votes
Accepted

Trouble aliasing ctl-x-map, C-x 8 insert command?

C-x 8 [ and similar are defined in a different keymap, iso-transl-ctl-x-8-map. What you need is this: (define-key key-translation-map "\C-t8" 'iso-transl-ctl-x-8-map) See the Elisp manual, ...
Drew's user avatar
  • 77.9k
1 vote
Accepted

How to translate C-i to F8

keyboard-translate takes character arguments, and (kbd "<f8>") does not evaluate to a character. Try this: (define-key key-translation-map (kbd "C-i") (kbd "<f8>&...
phils's user avatar
  • 51.6k

Only top scored, non community-wiki answers of a minimum length are eligible