[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (no subject given!)
From: |
Knut Forkalsrud |
Subject: |
Re: (no subject given!) |
Date: |
Mon, 23 Apr 2001 17:21:04 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.91 |
jbunch@teltronics.com (John Bunch) writes:
> When emacs is run in X Window mode on Linux, and the cursor is
> placed on the first printf function call in this file, and when
> Alt-; is entered on my PC keyboard, the bell rings to indicate that
> the key is undefined. However, when the exact same things are done
> running emacs in a gnome-terminal window (emacs -nw), this key
> causes a comment to be started at the end of the line, which is what
> it is supposed to do in X Window mode.
>
> I can work around this bug by typing the Microsoft Windows key with
> the semicolon key in X Window mode, but that really should not be
> the meta key. I looked through the documentation and could not
> figure out how to remap my keyboard so that the Alt key would act
> consistently as the meta key in both modes.
This is a problem with XFree86. I believe it is corrected in version
4.0.3 released a few weeks ago. In the mean time, put the following
into your ~/.Xmodmap file:
! xmodmap accepts the following input expressions:
!
! pointer = default reset pointer buttons to default
! pointer = NUMBER ... set pointer button codes
! keycode NUMBER = [KEYSYM ...] map keycode to given keysyms
! keysym KEYSYM = [KEYSYM ...] look up keysym and do a keycode
operation
! clear MODIFIER remove all keys for this modifier
! add MODIFIER = KEYSYM ... add the keysyms to the modifier
! remove MODIFIER = KEYSYM ... remove the keysyms from the modifier
!
! where NUMBER is a decimal, octal, or hex constant; KEYSYM is a valid
! Key Symbol name; and MODIFIER is one of the eight modifier names:
! Shift, Lock, Control, Mod1, Mod2, Mod3, Mod4, or Mod5. Lines
! beginning with an exclamation mark (!) are taken as comments. Case
! is significant except for MODIFIER names.
!
! Keysyms on the left hand side of the = sign are looked up before any
! changes are made; keysyms on the right are looked up after all of
! those on the left have been resolved. This makes it possible to
! swap modifier keys.
!
! xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
keycode 0x73 = Alt_L
keycode 0x40 = Meta_L
keycode 0x71 = Meta_R
keycode 0x74 = Alt_R
clear Mod1
clear Mod4
add Mod4 = Meta_L Meta_R
add Mod1 = Alt_L Alt_R