Thomas McFadden <[EMAIL PROTECTED]> writes:

> i know this is an old problem, but couldn't find a solution in the
> archives that worked, so here goes again: i'm running XDarwin
> downloaded from Fink and META is mapped to the command key (and ESC) in
> Emacs (i'm using GNU Emacs, not XEmacs).  the only suggestion i've seen
> for how to map it to the Alt key is to add the following to my .emacs
> file:
>
> (setq mac-command-key-is-meta nil)
>
> but this doesn't work.  i've also managed to find the place in the Help >
> Customize menu of Emacs itself where you can set the meta prefix
> character, but i don't know the encoding for the alt-key.
>
> i know i'm not the first person to have this problem.  anybody got a
> solution?

I put the following in .xmodmaprc and "xmodmap ~/.xmodmaprc" in my
.xinitrc:

clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
keysym Alt_L = Meta_L Alt_L
add    Shift   = Shift_L Shift_R
add    Control = Control_L
add    Mod1    = Alt_L
add    Mod2    = Mode_switch

Works with XEmacs and Emacs!

Ciao,
    Eric
-- 
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to