You are not logged in.

#1 2012-04-08 23:57:07

vizipok
Member
Registered: 2011-03-26
Posts: 23

How to use Super as Meta only in Emacs?

I'm using dwm, and running Emacs inside rxvt-unicode.

Since dwm uses left Alt as Mod1 key, i'd like to leave this key only for this purpose. And i need the Super (left windows logo key) to behave as Meta, but only in Emacs. I found sevaral ideas in different forums, but non of them worked so far.

I put this in my .emacs file:

(setq x-super-keysym 'meta)
(setq x-meta-keysym 'super)

...but the Emacs still percieve Alt as Meta, and does nothing with Super. Also i tried to modify xkbmap, but maybe i did it wrong? The original was like this:

<LALT> = 64;
<LWIN> = 133;
<RWIN> = 134;
<ALT> = 204;
<META> = 205;
key <LALT> {         [           Alt_L,          Meta_L ] };
key <LWIN> {         [         Super_L ] };
modifier_map Mod1 { <LALT> };
modifier_map Mod4 { <LWIN> };

and i modified this two lines:

key <LALT> {         [           Alt_L  ] };
key <LWIN> {         [         Meta_L ] };

Maybe also possible to solve this problem by setting some urxvt related thing in the .Xdefaults?

Offline

Board footer

Powered by FluxBB