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

Make up Emacs and XKB


I bought Logitech Deluxe (Model name: Y-SU61).  It has an additional
key (keycode 94, keysym 0x3c) which is located in the second (from the
bottom) horizontal row between left shift and 'z', marked with `|' and
'\' on it.

I wonder if it is possible to make better use of it (the key that is)
that it's used now. I usually spend all my time in Emacs editing Lisp
sources (chiefly). Here's an excerpt from my XF86Config-4

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc104"
	Option		"XkbLayout"	"us,ru"
	Option		"XkbVariant"	"winkeys"
	Option		"XkbOptions"	"grp:ctrl_shift_toggle,grp_led:scroll,alt:altismeta"

The key behaves in strict accordance with /etc/X11/xkb/keycodes/xfree86

    <LSGT> =  94;

and /etc/X11/xkb/symbols/ru

    key <LSGT> {        [            less,         greater      ],
                        [           slash,             bar      ]       };

but to me it seems neither sensible nor convenient.

The another somehow related question. The only way I know in Emacs to
change character sets is to call toggle-input-method. By default it is
bound to C-\. According to

	Option		"XkbOptions"	"grp:ctrl_shift_toggle,grp_led:scroll,alt:altismeta"

the groups are changed by Shift+Ctrl. So the problem: working outside
Emacs I have to use Ctrl+Shift (or any other combination among the
choices offered by Xkb, but none of them is C-\), inside Emacs --
C-\. Trying as hard as I could, still I was unable to figure out is it
possible or not to use _the same_ key combination for switching from
Latin to KOI8 characters everywhere. Would you please suggest

Using Debian Sarge

Thanks in advnace

Vladimir Zolotykh

Reply to: