views:

135

answers:

2

Any way to configure Carbon Emacs to use the Option key as a Meta key, rather than the Command key? I like having a consistent set of keybindings no matter if I am using Emacs in a terminal or Carbon Emacs. Also, I really would like Paste back on command-v.

+5  A: 

To use the alt key for meta, add this to your init file ~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el:

(setq mac-option-modifier 'meta)

Create the file if needed.

To get the apple-style copy and paste, add this to the init file:

(mac-key-mode 1)
martin clayton
the file should be ~/.emacs, not ~/.emacs.el. Alternatively, you can also put it in ~/.emacs.d/init.el
vedang
That's great. Thanks! But now how to I make command-v to the paste?
vy32
@vedang - I added those, thanks - .emacs.el is also valid.
martin clayton
@vy32 - "your wish-v is my command-v" - added.
martin clayton
You are the elisp god. Thanks.
vy32
A: 

Also, consider using this:

http://emacsformacosx.com/

Allen