unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Daniel Aarno <macbishop@users.sf.net>
Subject: Re: Mapping alt to altgr
Date: Mon, 06 Jun 2005 17:44:15 +0200	[thread overview]
Message-ID: <d81r0g$l70$1@inn.nada.kth.se> (raw)
In-Reply-To: <mailman.3509.1118055130.25862.help-gnu-emacs@gnu.org>

This is the contents of my .xmodmaprc

remove mod2 = Alt_L
remove mod1 = Alt_L
remove mod2 = Mode_switch
remove mod1 = Mode_switch
remove mod1 = Multi_key
add mod2 = Mode_switch
add mod2 = Alt_L

After logging in I run xmodmap .xmodmaprc followed by xmodmap -pm which prints out:

xmodmap:  up to 2 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0xe8),  Shift_R (0xec)
lock        Caps_Lock (0x40)
control     Control_L (0xe7)
mod1
mod2        Mode_switch (0xed),  Alt_L (0xe9)
mod3        Num_Lock (0x5a)
mod4        Meta_L (0xea),  Meta_R (0xee)
mod5

Then I start emacs and is unable to use either alt or altgr to compose 
character such as { on my swedish layout. Howerver in all other apps (like 
thunderbird where I just wrote it), including Xemacs it works fine. I was 
hoping there was away to do this internally in emacs.

I don't know xev, neither can I find it on my system.

Hope this is helps you help me

/Daniel Aarno

Peter Dyballa wrote:
> 
> Am 06.06.2005 um 11:24 schrieb Daniel Aarno:
> 
>> Hi, I tried to map left alt to altgr (right alt) in emacs without 
>> success.
> 
> 
> You know 'xmodmap -pm'?
> 
> You know xev that tells you a key's keysym and keycode?
> 
> Did you use syntax like
> 
>     clear Mod1
>     clear Mod2
>     keycode 66 = Meta_L
>     add Mod1 = Meta_L
> 
> How and when do you try to tell X11 the new key meanings?
> 
> -- 
> Greetings
> 
>   Pete
> 
> $ sumascii BILL GATES
>   B   I   L   L   G   A   T   E   S
>  66+ 73+ 76+ 76+ 71+ 65+ 84+ 69+ 83 = 663
> 
>  and add 3 because he's Bill Gates the third.
> 
> 
> 

  parent reply	other threads:[~2005-06-06 15:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-06  9:24 Mapping alt to altgr Daniel Aarno
2005-06-06 10:23 ` Peter Dyballa
     [not found] ` <mailman.3509.1118055130.25862.help-gnu-emacs@gnu.org>
2005-06-06 15:44   ` Daniel Aarno [this message]
2005-06-06 22:57     ` Peter Dyballa
2005-06-07  6:20     ` Travis Spencer
2005-06-07  8:09       ` Peter Dyballa
     [not found]     ` <mailman.3585.1118099200.25862.help-gnu-emacs@gnu.org>
2005-06-07  7:10       ` Daniel Aarno
     [not found]     ` <mailman.3630.1118125698.25862.help-gnu-emacs@gnu.org>
2005-06-07  7:13       ` Daniel Aarno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='d81r0g$l70$1@inn.nada.kth.se' \
    --to=macbishop@users.sf.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).