emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Alternate org-cycle-level behavior
@ 2010-01-30  1:26 Ryan Thompson
  0 siblings, 0 replies; only message in thread
From: Ryan Thompson @ 2010-01-30  1:26 UTC (permalink / raw)
  To: Org-Mode List


[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-30  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-30  1:26 Alternate org-cycle-level behavior Ryan Thompson

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).