Re: Option as Meta key in emacs
Re: Option as Meta key in emacs
- Subject: Re: Option as Meta key in emacs
- From: Owen Saxton <email@hidden>
- Date: Thu, 16 Jan 2003 10:17:48 -0800
Well, you can always use the escape key!
xterm needs to be instructed to do the right thing with the meta key. This
can be done by including the following line in ~/.Xdefaults:
XTerm*VT100.metaSendsEscape: True
This will take effect for the next xterm that's started (at least it did
for me).
The only problem now is that the Command, not the Option, key is the X11
meta key, so it's the wrong one and you can get some unwelcome interference
with the menu shortcuts. To switch the functions of the Option and Command
keys requires a few xmodmap commands in your .xinitrc file (you can also
just type them to try them out):
xmodmap -e "clear mod1"
xmodmap -e "clear mod2"
xmodmap -e "keycode 66 = Meta_L"
xmodmap -e "keycode 63 = Alt_L"
xmodmap -e "add mod1 = Alt_L Alt_R"
xmodmap -e "add mod2 = Meta_L"
Now the Option key will work as the meta key in emacs (and also in the tcsh
shell).
However there is a _big_ downside to all this. Option-click no longer
functions for me as an X11 paste operation in my xterm windows. It
otherwise works as MB2 such as when operating the scroll bar or bringing up
the options menu. Command-click still functions fully as MB3.
So this leaves a couple of potential action items for the X11 developers:
1) Supply an option to specify which keys are to be used as the X11 meta
and alt keys.
2) Fix the problem with the MB2 emulation becoming partially disabled
when the Option and Command key functions are switched (or tell me where I
went wrong in my switch procedure).
-- Owen
--On Sunday, January 12, 2003 7:51 PM -0800 mark lacas <email@hidden>
wrote:
For all the great suggestions for keyboard mapping, no one has provided
an answer to the lingering problem, of not having a meta key in emacs
under X11, as we do in the Apple Terminal.
Anyone know how to solve this?
ml
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.