Re: setting up the meta key for emacs
Re: setting up the meta key for emacs
- Subject: Re: setting up the meta key for emacs
- From: Harald Hanche-Olsen <email@hidden>
- Date: Thu, 13 Nov 2008 09:23:49 +0100 (CET)
+ "Keith D. Matthews" <email@hidden>:
> When I ssh into another mac and run 'emacs -nw somefile.txt' command
> acts as meta and everything is good. Unfortunately when I ssh into
> a linux box and do the same, command-f (for example) sends some
> weird \tilde{A} character. Is there a way I can fix that locally?
This sort of thing is a pain to deal with. The only way I have found
to sort of deal with is an X11 resource like this:
XTerm.vt100.translations: #override \
Meta <Key>BackSpace: string(0x1b) string(0x7f) \n\
<Key>BackSpace: string(0x7f) \n\
Meta<Key>b: string(0x1b) string("b") \n\
Meta<Key>c: string(0x1b) string("c") \n\
Meta<Key>d: string(0x1b) string("d") \n\
Meta<Key>f: string(0x1b) string("f") \n\
Meta<Key>l: string(0x1b) string("l") \n\
Meta<Key>u: string(0x1b) string("u") \n\
Meta<Key>period: string(0x1b) string(".")
I only filled in a small handful of letters above, because I am lazy.
Generally, I find just running emacs as an X client to be vastly
preferable.
I experimented a bit with
XTerm*metaSendsEscape: true
(equivalent to turning on "Meta Sends Escape" in the main xterm menu)
but it has no effect. I suspect it might work in an 8 bit locale, but
in a utf-8 locale, no way. Or so it seems.
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden