all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Which modifier to use?
@ 2020-12-05 11:28 Jean Louis
  2020-12-05 11:48 ` Christopher Dimech
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Jean Louis @ 2020-12-05 11:28 UTC (permalink / raw)
  To: Help GNU Emacs

I have too many keys on Hyper modifier and need a keys for many
functions. Emacs is mostly not modal and I am not using viper mode,
but as modal it would offer me quick access to key bindings such as:

- / a
- / s

Maybe CapsLk can be used as modifier or prefix key?






^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: Which modifier to use?
@ 2020-12-05 22:34 arthur miller
  2020-12-05 22:58 ` TRS-80
  0 siblings, 1 reply; 22+ messages in thread
From: arthur miller @ 2020-12-05 22:34 UTC (permalink / raw)
  To: TRS-80, help-gnu-emacs@gnu.org

"I think it is little known that you can define keys in this way, I
learned it while setting up which-key.  If you use that package, the car
of the alist will appear as the description, allowing you to create sort
of poor man's menu system.  :)"

Thanks!

Yes, I use which-key,  but I certainly didn't know I could define keys with descriptions. Not sure I have use for it immediately, but interesting indeed!

-------- Originalmeddelande --------
Från: TRS-80 <lists.trs-80@isnotmyreal.name>
Datum: 2020-12-05 22:30 (GMT+01:00)
Till: help-gnu-emacs@gnu.org
Ämne: Re: Which modifier to use?

> On 2020-12-05 10:03, Arthur Miller wrote:
>
> I leave Super to my window manager and xbindkeys; and all other
> modifiers go to applications. It is a rule. Makes life easier if you
> switch between Windows and GNU/Linux

Luckily I can avoid Windoze nearly 100% of the time nowadays, however I
still follow this rule and think it's a great idea, anyway.

I use i3 (wm) and have lots of custom keybindings at the OS/WM level,
they are all based on using Super as modifier.  So, in my mind, Super
(aka "Win") has to do with window manager.

Inside Emacs, I also group related keybindings behind a sort of "leader"
key, for example (dk here is alias for define-key, stricty to shorten
these lines so I can keep nice formatting):

(dk global-map (kbd "C-c y")   '("Yankpad"               . nil))
(dk global-map (kbd "C-c y c") '("Capture"               .
yankpad-capture-snippet))
(dk global-map (kbd "C-c y e") '("Edit"                  .
yankpad-edit))
(dk global-map (kbd "C-c y i") '("Insert"                .
yankpad-insert))
(dk global-map (kbd "C-c y r") '("Reload"                .
yankpad-reload))
(dk global-map (kbd "C-c y R") '("Repeat"                .
yankpad-repeat))
(dk global-map (kbd "C-c y s") '("Set (local) category"  .
yankpad-set-local-category))
(dk global-map (kbd "C-c y S") '("Set (global) category" .
yankpad-set-category))

I think it is little known that you can define keys in this way, I
learned it while setting up which-key.  If you use that package, the car
of the alist will appear as the description, allowing you to create sort
of poor man's menu system.  :)

Cheers,
TRS-80


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

end of thread, other threads:[~2020-12-09  7:13 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05 11:28 Which modifier to use? Jean Louis
2020-12-05 11:48 ` Christopher Dimech
2020-12-05 12:55   ` Jean Louis
2020-12-05 15:03     ` Arthur Miller
2020-12-05 17:55       ` Jean Louis
2020-12-05 21:29       ` TRS-80
2020-12-06  5:40         ` Jean Louis
2020-12-05 12:25 ` Stefan Möding
2020-12-05 12:59   ` Jean Louis
2020-12-05 15:52     ` Drew Adams
2020-12-05 16:08       ` Arthur Miller
2020-12-05 18:01       ` Jean Louis
2020-12-05 14:55 ` Arthur Miller
2020-12-05 17:54   ` Jean Louis
2020-12-06  9:14 ` Marcin Borkowski
2020-12-07  6:57   ` Jean Louis
2020-12-06 23:33 ` Michael Heerdegen
2020-12-07  0:35   ` Christopher Dimech
2020-12-09  7:13 ` Philip K.
  -- strict thread matches above, loose matches on Subject: below --
2020-12-05 22:34 arthur miller
2020-12-05 22:58 ` TRS-80
2020-12-06  0:58   ` arthur miller

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.