help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac - X11 - emacs - meta - alt key


From: unfrostedpoptart
Subject: Re: Mac - X11 - emacs - meta - alt key
Date: Tue, 04 May 2010 15:42:27 -0000
User-agent: G2/1.0

On Mar 14, 10:12 pm, JF Mezei <jfmezei.spam...@vaxination.ca> wrote:
> David Rogoff wrote:
> > I'm still getting used to my Mac and have a strange problem with emacs.
> >  When running Aquamacs on the Mac itself, the Alt/Option key is meta,
> > which is what I expect.  However, I'm also remote accessing a Linux box
> > via X11/NXClient.  When I run emacs (or xemacs) on in Linux, it looks
> > like X11 has remapped the Mac Command key to be meta.  How do I put
> > this back?
>
> On Linux (and on the mac) there is a utility called "xev"  (x events).
>
> You can test to see what event each key combination generates.

Thanks.  I tried xev and, as expected, the 2 command keys generate
Meta_L (keycode 63, keysym 0xffe7) and Meta_R (keycode 71, keysym
0xffe8).   Both option/alt keys generate something called Mode_switch
(keycode 69, keysym 0xff7e)

>
> xmodmap is the utility you would use on the Mac to remap your keyboard.
>
> For instance:
>
> cat ~/.xmodmap
> keycode 79  = KP_F1
> keycode 89  = KP_F1
> keycode 83  = KP_F3
> keycode 75  = KP_F4

>
> and you use xmodmap .xmodmap to load that new keymapping.  YOu need to
> hunt a bit to find the modifier names.  The last 4 lines map 4 different
> combinations of the keys (I think shift, control,meta and some other).

I'll have to look into this.  I've done a little digging and didn't
think OS/X used xmodmap.  Will this affect all OS/X programs or only
ones running inside X11?

 David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]