Search code examples
macosemacscarbon-emacs

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.


Solution

  • 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)