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.
views:
75answers:
1
+1
A:
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.
Brian Postow
2010-05-26 18:00:09
For various reasons I don't want to do it globally. So I'm only looking for ways of how to do it in Emacs.Turns out these variables exist only on OS X versions of Emacs.http://www.mail-archive.com/[email protected]/msg01743.htmlC-h v says nothing about the variable that you mention either on Emacs23.
dimvar
2010-05-27 16:50:53
I'm running OSX... what emacs are you running? I notice that I'm running v 22.1 so, I'm way behind the times...
Brian Postow
2010-05-27 17:51:49
23.1 on ubuntu 10.04 (the latest available from synaptic)
dimvar
2010-05-28 00:01:08