Re: [OS X Emacs] mapping for meta key…

Viktor Hedefalk hedefalk at
Mon Oct 4 02:15:25 EDT 2010


Great success. This did it for me:

First I mapped my Caps Lock key to Right Ctrl with external program
PCKeyboardHack. Then I added the following

(setq mac-option-modifier nil)
(setq mac-control-modifier 'meta)
(setq ns-right-contol-modifier 'ctrl)

So now I have Caps Lock as Ctrl, Ctrl (left) as Meta, Alt/Option as
Alt/Option, Command as Command and Esc as Esc. Just how I wanted it.

Thanks for helping out!

ns-control-modifier didn't do it for me, but I might have done something wrong?

On Sun, Oct 3, 2010 at 10:26 PM, David Reitter <david.reitter at> wrote:
> On Oct 3, 2010, at 4:16 PM, Viktor Hedefalk wrote:
>> Sorry, of course I want to map LEFT Ctrl to Meta and leave Right Ctrl as ctrl.
> Set ns-right-contol-modifier and ns-control-modifier.
> Make sure you have the latest Aquamacs version (2.1).
> --
> -- Aquamacs: Emacs on Mac OS X
> -- Could we help you? Return the favor and support the Aquamacs Project!

More information about the MacOSX-Emacs mailing list