From: Juri Linkov <juri@linkov.net>
To: Augusto Stoffel <arstoffel@gmail.com>
Cc: Philip Kaludercic <philipk@posteo.net>, 50679@debbugs.gnu.org
Subject: bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line
Date: Thu, 23 Sep 2021 19:15:34 +0300 [thread overview]
Message-ID: <87czozqndl.fsf@mail.linkov.net> (raw)
In-Reply-To: <87mto73xh5.fsf@gmail.com> (Augusto Stoffel's message of "Mon, 20 Sep 2021 20:36:54 +0200")
> FWIW, I think it would be nice to provide a simple way to define other
> “speed keys” in `outline-minor-mode [1], or even provide some
> pre-configured ones [2].
>
> Looking at the code, it seems that adding bindings to
> `outline-mode-cycle-map` would achieve precisely that, but the name
> of the keymap doesn't reflect that.
You are right, the name of the keymap was wrong, so I renamed it.
> [2]: I personally use these speed keys in outline-minor-mode, which are
> probably very similar to those from Org mode:
>
> "<tab>" 'outline-cycle
> "<backtab>" 'outline-cycle-buffer
> "f" 'outline-forward-same-level
> "b" 'outline-backward-same-level
> "n" 'outline-next-visible-heading
> "p" 'outline-previous-visible-heading
> "u" 'outline-up-heading
> "F" 'outline-move-subtree-down
> "B" 'outline-move-subtree-up
> "@" 'outline-mark-subtree
Now it's very easy to copy keys from outline-mode-prefix-map to
outline-minor-mode-cycle-map with just:
```
(map-keymap (lambda (key binding)
(outline-minor-mode-cycle--bind
outline-minor-mode-cycle-map
(vector key) binding))
outline-mode-prefix-map)
```
next prev parent reply other threads:[~2021-09-23 16:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-19 16:24 bug#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Philip Kaludercic
2021-09-19 16:53 ` Juri Linkov
2021-09-19 20:40 ` Philip Kaludercic
2021-09-20 7:02 ` Juri Linkov
2021-09-20 15:25 ` Juri Linkov
2021-09-20 15:35 ` Philip Kaludercic
2021-09-20 18:36 ` Augusto Stoffel
2021-09-21 11:27 ` Philip Kaludercic
2021-09-21 11:44 ` Augusto Stoffel
2021-09-21 11:58 ` Philip Kaludercic
2021-09-21 19:02 ` Augusto Stoffel
2021-09-21 17:58 ` Juri Linkov
2021-09-21 18:50 ` Augusto Stoffel
2021-09-22 16:09 ` Juri Linkov
2021-09-22 16:30 ` Augusto Stoffel
2021-09-23 16:15 ` Juri Linkov [this message]
2021-09-21 17:53 ` Juri Linkov
2021-09-23 16:17 ` Juri Linkov
2021-09-26 13:59 ` Philip Kaludercic
2021-09-27 15:35 ` Juri Linkov
2021-09-27 16:16 ` Augusto Stoffel
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=87czozqndl.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=50679@debbugs.gnu.org \
--cc=arstoffel@gmail.com \
--cc=philipk@posteo.net \
/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.