all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: bug-gnu-emacs@gnu.org
Subject: bug#1598: Please add easy key bindings for outline-(minor-)mode
Date: Wed, 17 Dec 2008 11:57:14 +0200	[thread overview]
Message-ID: <87hc53i0p1.fsf@iki.fi> (raw)

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

This is a "wishlist" bug with an example code to solve the issue.

The default key bindings for outline-mode and outline-minor-mode are
difficult to remember and slow to use. I think the main reason is that
there are way too many different key-bindings to operate with outlining.

I suggest that you make keys like M-<left> and M-<right> to act modally
so that they open and close one outline level at the time depending on
which levels and bodies are currently visible. In addition to that, and
to make outline navigating easy, M-<up> and M-<down> could move the
cursor to previous and next visible outline header.

I'll attach a code that I use. It works as I explained above. The code
is partly written by me but it's based on a code on Emacs wiki page:

    http://www.emacswiki.org/emacs/OutlineMinorMode

In the Emacs wiki the original code is titled "Explorer like
Key-Bindings" and my modified version is "Variation of Explorer-like
bindings". The latter is attached to this message). The code is licensed
with the usual Emacs wiki license (see the bottom of the web page):

    This work is licensed to you under version 2 of the GNU General
    Public License. Alternatively, you may choose to receive this work
    under any other license that grants the right to use, copy, modify,
    and/or distribute the work, as long as that license imposes the
    restriction that derivative works have to grant the same rights and
    impose the same restriction. For example, you may choose to receive
    this work under the GNU Free Documentation License, the
    CreativeCommons ShareAlike License, the XEmacs manual license, or
    similar licenses.

[-- Attachment #2: Outline-mode easy key-bindings --]
[-- Type: application/emacs-lisp, Size: 2427 bytes --]

             reply	other threads:[~2008-12-17  9:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  9:57 Teemu Likonen [this message]
2008-12-17 16:20 ` bug#1598: Please add easy key bindings for outline-(minor-)mode Stefan Monnier
2008-12-17 16:30   ` Processed: " Emacs bug Tracking System
2008-12-17 16:49   ` Teemu Likonen
2021-07-19 15:04 ` Lars Ingebrigtsen
2021-07-19 15:33   ` Christopher Dimech
2021-07-19 15:34   ` Juri Linkov
2021-07-19 15:55   ` Kévin Le Gouguec

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=87hc53i0p1.fsf@iki.fi \
    --to=tlikonen@iki.fi \
    --cc=1598@emacsbugs.donarmstrong.com \
    --cc=bug-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.
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.