Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use Alt as Meta key in Carbon Emacs, not Apple Command Key

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.

like image 338
vy32 Avatar asked Dec 23 '22 06:12

vy32


2 Answers

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)
like image 51
martin clayton Avatar answered Dec 27 '22 11:12

martin clayton


Also, consider using this:

http://emacsformacosx.com/

like image 37
Allen Avatar answered Dec 27 '22 10:12

Allen