Reputation: 581
I'm using a Mac keyboard on Ubuntu at work. What do I add to my .emacs file to turn the command key to Meta?
I tried (setq mac-command-key-is-meta t)
and (setq mac-command-key 'meta)
and neither works.
Upvotes: 1
Views: 2240
Reputation: 12187
I think in Ubunto, your best bet may be to just use xkeymaps to re-define the key in the first place... because you kind of want that key to be meta for everything... I'd just do it globally.
Neither of those variables exist in emacs. You should probably do a C-h v variable name before you bother trying to use a variable...
However, mac-keyboard-modifier-mask-alist seems like it might be what you are looking for. I would swap the option and command values and see if it does what you want.
Upvotes: 1