Activating the "Use option as meta key" isn't a good solution because I sometimes need to type accented characters that require the option key.
How do people deal with this when using Emacs in the OS X Terminal app?
Activating the "Use option as meta key" isn't a good solution because I sometimes need to type accented characters that require the option key.
How do people deal with this when using Emacs in the OS X Terminal app?
(setq mac-option-modifier nil
mac-command-modifier 'meta)Having option as meta is useful outside of Emacs, as "bash" (and other shells) use Emacs keys by default (M-d, M-f and M-b are all essential for me when I'm using bash).
I wish the OS would let me use the Fn key for doing fancy unicode characters (maybe Fn+option or something)—that way I could have good unicode input and my precious meta key.
M-x 8 ` e -> è
M-x 8 / a -> å
M-x 8 E -> €
The number of these binds does not cover all of unicode, but it's surprisingly high nonetheless. If your desired character does not have a direct bind like that, or you just can't find one (C-h b lists them), you can insert a character by hitting M-x 8 RET and then typing its name: M-x 8 RET "Em dash" -> —
M-x 8 RET "Hebrew letter double vav" -> װ
Tab completion works for these, of course.[edit] I just saw the comment where you're more specific about what you're looking for. This isn't it, but having gotten a reply already, I don't want to delete this comment. It won't help you, but maybe it will others :P
I've used Option as Meta for years (been using Emacs since (gulp) 1977 on ITS/TOPS-20) and never had any trouble. You can use the M-x insert-char (M-x ucs-insert) and type in the code point or Unicode name of any character.
I want to hold down the option key and press another key to get the character I need. That's why using Terminal's all-or-nothing option of mapping option to meta doesn't work.
That lets you set up things like you want with M-x customize-group ns
I'm using CMD as meta there and CTRL as control, option stays option.