I have a macbook hooked up to an external monitor and use an external keyboard. I've already set it up in the MacOS terminal to use *alt (option) keys* as Meta in the options menu. So, I would like to disable the *Right-Alt (option) key* being recognised as Meta and use it to type special characters. I've found the setting *(setq mac-right-option-modifier nil)* and added it to my settings file (\~/.emacs).
**Problem:** If I launch Emacs program through Finder as any other program the setting in the .emacs works fine:
- Left-Alt = Meta key
- Right-Alt is just Alt key
However, if I launch Emacs through the terminal (the way I would like to use it) the Right-Alt (option) key is still being recognised as Meta key. Is there a way to fix this?
This is the setting that I have in my .emacs config file:
(setq mac-right-option-modifier nil)
* OS: MacOS Monterey
* Emacs version: 28.1
* Default MacOS terminal app for terminal