all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* To get list of key bindings sorted by modifier
@ 2020-12-05 11:43 Jean Louis
  2020-12-05 12:27 ` Skip Montanaro
  2020-12-05 21:12 ` TRS-80
  0 siblings, 2 replies; 11+ messages in thread
From: Jean Louis @ 2020-12-05 11:43 UTC (permalink / raw)
  To: Help GNU Emacs

I would like to quickly get key bindings list sorted by its modifier
as that would help me create new key bindings.

Jean



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-05 11:43 To get list of key bindings sorted by modifier Jean Louis
@ 2020-12-05 12:27 ` Skip Montanaro
  2020-12-05 13:00   ` Jean Louis
  2020-12-05 21:12 ` TRS-80
  1 sibling, 1 reply; 11+ messages in thread
From: Skip Montanaro @ 2020-12-05 12:27 UTC (permalink / raw)
  To: Jean Louis; +Cc: Help GNU Emacs

> I would like to quickly get key bindings list sorted by its modifier
> as that would help me create new key bindings.
>

Does C-h b not do what you want?

Skip Montanaro


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-05 12:27 ` Skip Montanaro
@ 2020-12-05 13:00   ` Jean Louis
  0 siblings, 0 replies; 11+ messages in thread
From: Jean Louis @ 2020-12-05 13:00 UTC (permalink / raw)
  To: Skip Montanaro; +Cc: Help GNU Emacs

* Skip Montanaro <skip.montanaro@gmail.com> [2020-12-05 15:27]:
> > I would like to quickly get key bindings list sorted by its modifier
> > as that would help me create new key bindings.
> 
> Does C-h b not do what you want?

That it is, thank you.




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-05 11:43 To get list of key bindings sorted by modifier Jean Louis
  2020-12-05 12:27 ` Skip Montanaro
@ 2020-12-05 21:12 ` TRS-80
  2020-12-06  5:05   ` Jean Louis
  1 sibling, 1 reply; 11+ messages in thread
From: TRS-80 @ 2020-12-05 21:12 UTC (permalink / raw)
  To: help-gnu-emacs

> On 2020-12-05 06:43, Jean Louis wrote:
> I would like to quickly get key bindings list sorted by its modifier
> as that would help me create new key bindings.

This is not strictly/directly answering your question, however in my
init file I do keep all my (global) keybindings in order of modifier,
followed by alphabetical order, so that I can easier see at a glance
what has already been assigned.  Especially within those areas which are
defined for user use (C-c *, F5-F9, etc.).

Cheers,
TRS-80



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-05 21:12 ` TRS-80
@ 2020-12-06  5:05   ` Jean Louis
  2020-12-06  5:53     ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Jean Louis @ 2020-12-06  5:05 UTC (permalink / raw)
  To: TRS-80; +Cc: help-gnu-emacs

* TRS-80 <lists.trs-80@isnotmyreal.name> [2020-12-06 00:13]:
> > On 2020-12-05 06:43, Jean Louis wrote:
> > I would like to quickly get key bindings list sorted by its modifier
> > as that would help me create new key bindings.
> 
> This is not strictly/directly answering your question, however in my
> init file I do keep all my (global) keybindings in order of modifier,
> followed by alphabetical order, so that I can easier see at a glance
> what has already been assigned.  Especially within those areas which are
> defined for user use (C-c *, F5-F9, etc.).

Yes, not strictly, I would like to see if by modifier or prefix.

I have no idea what is A. Is it Alternative Control?

I cannot get this:
A-<		«

Maybe is my ALT now Meta and ALT cannot do what is supposed to do but
then this list of key bindings would be incorrect, as it does not give
proper key bindings.

Key translations:
key             binding
---             -------

C-x		Prefix Command
A-SPC		 
A-!		¡
A-"		Prefix Command
A-$		¤
A-'		Prefix Command
A-*		Prefix Command
A-+		±
A-,		Prefix Command
A--		­
A-.		·
A-/		Prefix Command
A-1		Prefix Command
A-2		Prefix Command
A-3		Prefix Command
A-<		«
A-=		¯
A->		»
A-?		¿
A-C		©
A-L		£



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-06  5:05   ` Jean Louis
@ 2020-12-06  5:53     ` Eli Zaretskii
  2020-12-06  9:58       ` Jean Louis
  2020-12-07  6:52       ` Jean Louis
  0 siblings, 2 replies; 11+ messages in thread
From: Eli Zaretskii @ 2020-12-06  5:53 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sun, 6 Dec 2020 08:05:34 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> I have no idea what is A. Is it Alternative Control?

It is the Alt modifier.  In the Emacs manual, type

  i Alt, modifier key RET

and read there.

> I cannot get this:
> A-<		«

If your keyboard doesn't have an Alt key separate from Meta, the node
in the manual you get to above will explain how to "fake" Alt.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-06  5:53     ` Eli Zaretskii
@ 2020-12-06  9:58       ` Jean Louis
  2020-12-06 10:11         ` Eli Zaretskii
  2020-12-07  6:52       ` Jean Louis
  1 sibling, 1 reply; 11+ messages in thread
From: Jean Louis @ 2020-12-06  9:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

* Eli Zaretskii <eliz@gnu.org> [2020-12-06 08:55]:
> > Date: Sun, 6 Dec 2020 08:05:34 +0300
> > From: Jean Louis <bugs@gnu.support>
> > Cc: help-gnu-emacs@gnu.org
> > 
> > I have no idea what is A. Is it Alternative Control?
> 
> It is the Alt modifier.  In the Emacs manual, type
> 
>   i Alt, modifier key RET
> 
> and read there.
> 
> > I cannot get this:
> > A-<		«
> 
> If your keyboard doesn't have an Alt key separate from Meta, the node
> in the manual you get to above will explain how to "fake" Alt.

Do you have Meta separate from Alt?




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-06  9:58       ` Jean Louis
@ 2020-12-06 10:11         ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2020-12-06 10:11 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sun, 6 Dec 2020 12:58:42 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> Do you have Meta separate from Alt?

No.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-06  5:53     ` Eli Zaretskii
  2020-12-06  9:58       ` Jean Louis
@ 2020-12-07  6:52       ` Jean Louis
  2020-12-07 15:43         ` Eli Zaretskii
  1 sibling, 1 reply; 11+ messages in thread
From: Jean Louis @ 2020-12-07  6:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

* Eli Zaretskii <eliz@gnu.org> [2020-12-06 08:55]:
> > Date: Sun, 6 Dec 2020 08:05:34 +0300
> > From: Jean Louis <bugs@gnu.support>
> > Cc: help-gnu-emacs@gnu.org
> > 
> > I have no idea what is A. Is it Alternative Control?
> 
> It is the Alt modifier.  In the Emacs manual, type
> 
>   i Alt, modifier key RET
> 
> and read there.
> 
> > I cannot get this:
> > A-<		«
> 
> If your keyboard doesn't have an Alt key separate from Meta, the node
> in the manual you get to above will explain how to "fake" Alt.

I found that.

   Even if your keyboard lacks these additional modifier keys, you can
enter it using ‘C-x @’: ‘C-x @ h’ adds the Hyper flag to the next
character, ‘C-x @ s’ adds the Super flag, and ‘C-x @ a’ adds the Alt
flag.  For instance, ‘C-x @ h C-a’ is a way to enter ‘Hyper-Control-a’.
(Unfortunately, there is no way to add two modifiers by using ‘C-x @’
twice for the same character, because the first one goes to work on the
‘C-x’.)

But I have 2 Alt keys where the right one I never use.

How can I make the right tab distinguished new modifier key?



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-07  6:52       ` Jean Louis
@ 2020-12-07 15:43         ` Eli Zaretskii
  2020-12-07 19:32           ` Jean Louis
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2020-12-07 15:43 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Mon, 7 Dec 2020 09:52:41 +0300
> From: Jean Louis <bugs@gnu.support>
> Cc: help-gnu-emacs@gnu.org
> 
> But I have 2 Alt keys where the right one I never use.
> 
> How can I make the right tab distinguished new modifier key?

That is specific to your keyboard software and driver, so I don't know
the answer.



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: To get list of key bindings sorted by modifier
  2020-12-07 15:43         ` Eli Zaretskii
@ 2020-12-07 19:32           ` Jean Louis
  0 siblings, 0 replies; 11+ messages in thread
From: Jean Louis @ 2020-12-07 19:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

* Eli Zaretskii <eliz@gnu.org> [2020-12-07 18:44]:
> > Date: Mon, 7 Dec 2020 09:52:41 +0300
> > From: Jean Louis <bugs@gnu.support>
> > Cc: help-gnu-emacs@gnu.org
> > 
> > But I have 2 Alt keys where the right one I never use.
> > 
> > How can I make the right tab distinguished new modifier key?
> 
> That is specific to your keyboard software and driver, so I don't know
> the answer.

This is just GNU Hyperbola/Linux-libre and Thinkpad notebooks. I have
seen online people switch right Alt to become Ctrl2 but I would like
right Alt to become Alt as now is Meta. Tried with xmodmap but it is
still meta in Emacs.

From manual:
(info "(emacs) Modifier Keys")

,----
|    Even if your keyboard lacks these additional modifier keys, you can
| enter it using ‘C-x @’: ‘C-x @ h’ adds the Hyper flag to the next
| character, ‘C-x @ s’ adds the Super flag, and ‘C-x @ a’ adds the Alt
| flag.  For instance, ‘C-x @ h C-a’ is a way to enter ‘Hyper-Control-a’.
| (Unfortunately, there is no way to add two modifiers by using ‘C-x @’
| twice for the same character, because the first one goes to work on the
| ‘C-x’.)
`----

But I would not like pressing 3 keys C, x and @ when I already have
unused Alt on right side of the keyboard and I also have Menu which
does sometimes Emacs stuff, sometimes Window Manager stuff depending
of the window manager. By all means I wish to shorten the keys that I
press.

Caps Lock - to be modifier
Right Alt - could be Alt
Right Control - could be Hyper
Right Menu key - could be something as well

That would greatly enhance my work.

I have now made Caps Lock to by my Hyper:

~/.Xmodmap

clear      lock 
clear   control
clear      mod1
clear      mod2
clear      mod3
clear      mod4
clear      mod5
keycode      37 = Hyper_L
keycode      66 = Control_L
add     control = Control_L Control_R
add        mod1 = Alt_L Alt_R Meta_L
add        mod2 = Num_Lock
add        mod3 = Hyper_L
add        mod4 = Super_L Super_R
add        mod5 = Mode_switch ISO_Level3_Shift

This may not be alright all. For right now it works. As C-h k with
CapsLock-m for example gives me: H-m is undefined. Hyper key is there
that is great. CapsLock I never use in its own definition. It makes
sense to use Caps Lock on a real physical type writer which is heavy
and difficult to keep in Caps Lock position by using hands. On
computer is not necessary. Key is more useful to become Hyper key.

I still need to understand how to make right Alt behave as Alt and not
Meta.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-12-07 19:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05 11:43 To get list of key bindings sorted by modifier Jean Louis
2020-12-05 12:27 ` Skip Montanaro
2020-12-05 13:00   ` Jean Louis
2020-12-05 21:12 ` TRS-80
2020-12-06  5:05   ` Jean Louis
2020-12-06  5:53     ` Eli Zaretskii
2020-12-06  9:58       ` Jean Louis
2020-12-06 10:11         ` Eli Zaretskii
2020-12-07  6:52       ` Jean Louis
2020-12-07 15:43         ` Eli Zaretskii
2020-12-07 19:32           ` Jean Louis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.