Most of the convenient OS X keybindings that GNU Emacs defines, such as s-a
for C-x h
, are not all that useful to me. I'd like to make Super synonymous with Ctrl. Is there a way to easily map all key chords involving Super to the equivalent Ctrl version? Failing that, is there a way to map a key to another key that works for prefix keys as well as non-prefix keys?
I've tried using keyboard-translate
and global-set-key
so far.
(keyboard-translate (kbd "s-a") (kbd "C-a"))
results in a type error. I'm not sure why.
(global-set-key (kbd "s-a") (kbd "C-a"))
works fine, but (global-set-key (kbd "s-h") (kbd "C-h"))
does not seem to do much of anything.
M-x describe-variable
orC-h v
to learn more about the available options.keyboard-translate
didn't work as intended and why usingglobal-set-key
and the like works differently for prefix keys. It might be more appropriate to structure those as separate questions or hunt around more, I'm not sure.keyboard-translate
as I've never used it. I have set up my own keyboard shortcuts and disabled those that I didn't find useful, so I have no need to remap anything. Sorry that I couldn't be of more assistance.