From: Shahab Shahsavari Alavidjeh <zzgraph@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using AltGr as standard modifier key in emacs
Date: Tue, 13 Oct 2015 22:50:17 +0330 [thread overview]
Message-ID: <87pp0ir2xa.fsf@fedora22.zzgraph> (raw)
In-Reply-To: <mvjhvo$26u$1@speranza.aioe.org> (Javier's message of "Tue, 13 Oct 2015 18:19:36 +0000 (UTC)")
Javier <nospam@nospam.com> writes:
> you can play with xmodmap to do this and remap rightAlt to Hyper or super
>
> Typing this in a terminal should do the trick
>
> xmodmap -e "keycode 108 = Hyper_L" ; xmodmap -e "add mod4 = Hyper_L"
>
> You can check inside emacs that things are working by using C-h l (view lossage)
> If it is mapped ok, pressing RighAlt-a you should see
>
> H-a C-h l
>
> Once this works you can customize RightAlt-a in elisp as
>
> (kbd "H-a")
> (kbd "s-b")
>
> For hyper is a capital 'H' and for super it would be lower case 's'.
>
> This might have some problems, like the desktop capturing the Hyper-a combination.
> What desktop are you using? gnome? kde?
>
I use Gnome 3 desktop environment, which heavily relies on Super key as
modifier.
My xmodmap -pm out put is as follow
$ xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
so I think I prefer to map it to hyper and remove so I have to
remove it from mod4 keymap and set it to mod5 beside AltGr. I'm no aware
of any usage for hyper key in my current workflow.
> Another problem would be that applications outside emacs might not be
> able to use rightAlt anymore. That might still be solved running
> emacs inside an X-server of its own.
I didn't know that it is possible, can you explain more? is it
completely isolate my Emacs frame from other windows? and both
environments can run simultaneously?
>
> From the elisp manual, you can use several modifiers keys: alt,
> meta, hyper and super
>
> http://www.gnu.org/software/emacs/manual/html_node/elisp/X11-Keysyms.html
> http://www.gnu.org/software/emacs/manual/html_node/elisp/Other-Char-Bits.html
>
> The X Window System defines three other modifier bits that can be
> set in a character: hyper, super and alt. The syntaxes for these
> bits are ???\H-???, ???\s-??? and ???\A-???.
>
An let me ask a meta question, don't you think of it as a unresolved
bug? AltGr works as defacto standard (or even constituted standard, I
don't know for sure) for 3rd and forth level shift characters, while
Emacs uses bindings to extinct keys like hyper and Meta and even knows
about things like Pause/Break, why it doesn't support this key? Do you
think I should report it as a bug? (or is it reported?)
And one of the reasons I sent this email (beside my own problem) was
that I wanted to know if anybody else suffers from this shortcoming?
next prev parent reply other threads:[~2015-10-13 19:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.229.1444746928.7904.help-gnu-emacs@gnu.org>
2015-10-13 16:57 ` Using AltGr as standard modifier key in emacs Rusi
2015-10-13 17:05 ` Rusi
2015-10-13 17:44 ` Shahab Shahsavari Alavidjeh
[not found] ` <mailman.256.1444758367.7904.help-gnu-emacs@gnu.org>
2015-10-13 18:19 ` Javier
2015-10-13 18:43 ` Javier
2015-10-13 19:42 ` Shahab Shahsavari Alavidjeh
[not found] ` <mailman.265.1444765466.7904.help-gnu-emacs@gnu.org>
2015-10-13 20:17 ` Javier
2015-10-14 5:18 ` Shahab Shahsavari Alavidjeh
2015-10-13 19:20 ` Shahab Shahsavari Alavidjeh [this message]
2015-10-13 13:11 Shahab Shahsavari Alavidjeh
2015-10-14 6:05 ` Yuri Khan
2015-10-14 6:47 ` Shahab Shahsavari Alavidjeh
2015-10-14 9:54 ` tomas
[not found] ` <mailman.289.1444802784.7904.help-gnu-emacs@gnu.org>
2015-10-14 12:17 ` Rusi
2015-10-15 1:47 ` Rusi
2015-10-15 2:23 ` Yuri Khan
[not found] ` <mailman.347.1444875907.7904.help-gnu-emacs@gnu.org>
2015-10-15 2:42 ` Rusi
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=87pp0ir2xa.fsf@fedora22.zzgraph \
--to=zzgraph@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).