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
2010-01-17 23:02:00
the file should be ~/.emacs, not ~/.emacs.el. Alternatively, you can also put it in ~/.emacs.d/init.el
vedang
2010-01-18 04:16:58
That's great. Thanks! But now how to I make command-v to the paste?
vy32
2010-01-18 05:55:41
@vedang - I added those, thanks - .emacs.el is also valid.
martin clayton
2010-01-18 06:49:04
@vy32 - "your wish-v is my command-v" - added.
martin clayton
2010-01-18 07:20:32
You are the elisp god. Thanks.
vy32
2010-01-18 22:07:37