emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ryan Thompson <rct@thompsonclan.org>
To: Org-Mode List <emacs-orgmode@gnu.org>
Subject: Alternate org-cycle-level behavior
Date: Fri, 29 Jan 2010 17:26:11 -0800	[thread overview]
Message-ID: <2a4ba2fd1001291726s31f6a760i20ace437f9755c9b@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 748 bytes --]

Hi all,

I've implemented my own org-cycle-level function. The major difference is
that it's stateless, taking cues only from the level of the previous
headline, rather than the level at which the current headline started. That
way you can always look at the buffer and know what the TAB key will do on
an empty headline. For example, if the previous headline is at level 4 and
you create a new blank one under it, pressing TAB to cycle levels will cycle
in the following order: 4 -> 5 -> 3 -> 2 -> 1 -> 4. Even if you move the
point away and back, then keep cycling, the cycling picks up where it left
off. (The default org-cycle-level function does not work this way.)

You can get it on Worg: http://orgmode.org/worg/org-hacks.php#sec-23

-Ryan

[-- Attachment #1.2: Type: text/html, Size: 857 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

                 reply	other threads:[~2010-01-30  1:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=2a4ba2fd1001291726s31f6a760i20ace437f9755c9b@mail.gmail.com \
    --to=rct@thompsonclan.org \
    --cc=emacs-orgmode@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).