unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Klaus Zeitler <kzeitler+usenet@gsm-mailhost.de.lucent.com>
Subject: Re: Help producing the Alt modifier
Date: 05 May 2003 09:36:22 +0200	[thread overview]
Message-ID: <q5gu1c926bt.fsf@lucent.com> (raw)
In-Reply-To: 73fta.58420$mZ4.668797@news.xtra.co.nz

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii Don't forget to think about financial concerns.  Listen to your anteater today.  You will be in conflict with Scorpio since Pluto has moved into Cancer.  You will meet someone you blessed 3 to 6 times at a party this week.  You'll soon be tired., Size: 2101 bytes --]

>>>>> "Jeremy" == Jeremy Bowen <jeremyb@opennw.com> writes:
    Jeremy> 
    Jeremy> Luis O. Silva wrote:
    JB> How do I make the ALT keys generate the <Alt> modifier
    JB> ?????
    >> 
    >> AFAIK you won't be able to generate the Alt modifier in
    >> Emacs. You always will obtain the Meta modifier. The Alt

if there's no Meta key defined then emacs will use Alt as Meta, once
you have an Meta modifier, ALt can be used too

    >> modifier didn't exist in the old terminal and it is *not*
    >> needed in Emacs. Why do you want this modifier? If you need an
    >> alternative modifier, why don't you define Super or Hyper?
    Jeremy> 
    Jeremy> OK. How do I make the ALT keys generate the <Super> or <Hyper>
    Jeremy> modifier ????

so your xmodmap output tells us you have defined mod1 as Alt and not as Meta

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71)
mod2        Num_Lock (0x4d)
mod3
mod4
mod5        Scroll_Lock (0x4e)

IIRC you use a 101 keyboard, i.e. you've got no windows keys etc., i.e.
you could e.g. use one of the Control and Alt keys.

now add to/write to your .xmodmaprc file

--- snip --
clear Control
clear Mod1
keysym Alt_R = Meta_R
keysym Control_R = Hyper_R
add Control = Control_L
add Mod1    = Alt_L
add Mod3    = Meta_R
add Mod4    = Hyper_R
--- snip ---

hope I got this right cause it's been a long time that I played with xmodmap.
This should redefine your right Alt and Control keys to Meta and Hyper.
If you don't use Scroll_Lock or Num_Lock then you can of course also redefine
these keys (that's what I've done and I also removed Caps_Lock and use
that key as super key). Do you know xkeycaps? Once you start playing with
the keycodes you better have this one at hand to go back to the default
key bindings.

HTH

Klaus


-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
 ------------------------------------------
---
If I had only known, I would have been a locksmith.  -- Albert Einstein

  parent reply	other threads:[~2003-05-05  7:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <brjra.39656$mZ4.458546@news.xtra.co.nz>
2003-04-29  6:51 ` Help producing the Alt modifier Klaus Zeitler
     [not found]   ` <5SBra.42419$mZ4.495512@news.xtra.co.nz>
2003-04-30  5:30     ` Klaus Zeitler
     [not found]       ` <k5Zra.46248$mZ4.552438@news.xtra.co.nz>
2003-05-03  4:24         ` Bijan Soleymani
2003-05-03 11:41           ` Marco Parrone
2003-04-30 14:26 ` Kai Großjohann
     [not found]   ` <uPZra.46360$mZ4.553032@news.xtra.co.nz>
2003-05-01 11:47     ` Kai Großjohann
2003-05-01 22:15       ` Stefan Monnier
2003-05-02 14:17         ` Ehud Karni
     [not found]         ` <mailman.5490.1051885088.21513.help-gnu-emacs@gnu.org>
2003-05-02 16:21           ` Stefan Monnier
2003-05-05  1:25         ` Alexander Nikolov
2003-05-05  6:10           ` Kai Großjohann
2003-05-10  1:24             ` Alexander Nikolov
2003-05-10 15:07               ` Alexander Nikolov
     [not found]       ` <V1jsa.49550$mZ4.583907@news.xtra.co.nz>
2003-05-02  9:16         ` Luis O. Silva
2003-05-02 12:25         ` Kai Großjohann
     [not found]         ` <mailman.5480.1051867002.21513.help-gnu-emacs@gnu.org>
     [not found]           ` <73fta.58420$mZ4.668797@news.xtra.co.nz>
2003-05-05  7:36             ` Klaus Zeitler [this message]
2003-05-06  2:53             ` Bijan Soleymani

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=q5gu1c926bt.fsf@lucent.com \
    --to=kzeitler+usenet@gsm-mailhost.de.lucent.com \
    /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).