all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Key binding popup interface
Date: Tue, 12 Dec 2017 21:28:01 +0000	[thread overview]
Message-ID: <CAFyQvY2iyagHG0ns+h-KeMGGrSwZRC=-0RhZ404TDixvPLhTZQ@mail.gmail.com> (raw)
In-Reply-To: <jwvlgi7r6ws.fsf-monnier+gmane.emacs.devel@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1574 bytes --]

On Tue, Dec 12, 2017 at 4:19 PM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> > For instance, I have a hydra to insert different Org blocks in org-mode,
> > and looks like this:
> > [image: image.png]
>
> [ Hmm... Gnus here doesn't seem to provide any way for me to see
>   this image.  ]
>

Sorry about that.. don't those images show up as attachments? They show up
on the mailing list page fine. Here are 2 messages where I pasted images in
this thread:

- http://lists.gnu.org/r/emacs-devel/2017-12/msg00392.html
- http://lists.gnu.org/r/emacs-devel/2017-12/msg00395.html

This sounds a bit like the primitive "hierarkey" feature which I used in
> PCL-CVS.  Basically there I defined a sub-keymap bound to `d` with
> bindings like:
>
>        (?= . ("diff" . cvs-mode-diff))
>        (?2 . ("other" . cvs-mode-diff-other))
>        (?d . ("diff"  . cvs-mode-diff))
>        (?v . ("vendor"  . cvs-mode-diff))
>        ...
>
> so after hitting `d` Emacs shows in the each area something like
> "Diff: vendor, diff, = = diff, 2 = other, ...".
>

I had not heard of that!

This is a very old feature implemented in the C code (src/keyboard.c)
> and very little used.
>
> It would be good to replace it with a more powerful feature implemented
> in Elisp and used more widely.
>

That's a +1 for hydra? :)

You can check out more examples of hydra on its Wiki[1]. I have quite a few
hydra examples in my emacs config too[2].

[1]: https://github.com/abo-abo/hydra/wiki/Emacs
[2]: https://github.com/kaushalmodi/.emacs.d/search?l=Emacs+Lisp&q=defhydra
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2846 bytes --]

  reply	other threads:[~2017-12-12 21:28 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10  0:23 Poll: new keybinding for org-insert-structure-template? Eric Abrahamsen
2017-12-10 11:26 ` Rasmus
2017-12-10 19:37   ` Eric Abrahamsen
2017-12-12  7:48     ` Rasmus
2017-12-12  7:55       ` Nicolas Goaziou
2017-12-12 13:49         ` Rasmus
2017-12-12 14:02           ` Key binding popup interface (Was: Re: Poll: new keybinding for org-insert-structure-template on org mode list) Kaushal Modi
2017-12-12 18:45             ` Key binding popup interface Eric S Fraga
2017-12-12 18:56               ` Kaushal Modi
2017-12-12 19:53                 ` Alan E. Davis
2017-12-12 20:09             ` Key binding popup interface (Was: Re: Poll: new keybinding for org-insert-structure-template on org mode list) Charles A. Roelli
2017-12-12 20:20               ` Kaushal Modi
2017-12-12 21:18                 ` Key binding popup interface Stefan Monnier
2017-12-12 21:28                   ` Kaushal Modi [this message]
2017-12-13 11:49                     ` Michael Heerdegen
2017-12-13 19:56                 ` Key binding popup interface (Was: Re: Poll: new keybinding for org-insert-structure-template on org mode list) Charles A. Roelli
2017-12-12 20:20             ` Key binding popup interface Eric Abrahamsen
2017-12-12 20:33               ` Kaushal Modi
2017-12-12 20:44                 ` Eric Abrahamsen
2017-12-12 20:56                   ` Kaushal Modi
2017-12-12 21:01             ` Stefan Monnier
2017-12-12 21:19               ` Kaushal Modi
2017-12-12 21:48                 ` Stefan Monnier
2017-12-13 15:38                   ` Kaushal Modi
2017-12-13 16:18                     ` Stefan Monnier
2017-12-12 23:51               ` Robert Weiner
2017-12-13 15:40                 ` Kaushal Modi
2017-12-13 16:25                   ` Robert Weiner
2017-12-13  6:52               ` John Wiegley
2017-12-13 15:43                 ` Kaushal Modi
2017-12-13  0:45           ` Poll: new keybinding for org-insert-structure-template? Eric Abrahamsen
2017-12-14  9:06             ` Rasmus
2017-12-14 21:19               ` Eric Abrahamsen
2017-12-15 11:22                 ` Rasmus
2017-12-15 12:59                   ` Kaushal Modi
2017-12-15 13:15                     ` Rasmus
2017-12-15 17:40                       ` Eric Abrahamsen
2017-12-18 18:23                         ` Eric Abrahamsen
2017-12-19 11:40                           ` Rasmus
2017-12-20 16:36                             ` Eric Abrahamsen
2017-12-20 16:48                               ` Eric Abrahamsen
2017-12-21  9:16                                 ` Rasmus

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

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

  git send-email \
    --in-reply-to='CAFyQvY2iyagHG0ns+h-KeMGGrSwZRC=-0RhZ404TDixvPLhTZQ@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
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.