emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: customize behaviour of org-cycle?
Date: Sat, 15 Mar 2014 14:46:19 -0400	[thread overview]
Message-ID: <CAN_Dec9UJ-DpiiZa5LG26m7R-H-0rBK0GPOgpYUXBbcDoFQoDQ@mail.gmail.com> (raw)

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

Hi again everyone,

I would like to be able to customize the behaviour of org-cycle/TAB in
two scenarios, and am wondering if it's possible to do this using
existing tools, or if I have to write my own versions of org-cycle,
etc., in order to get what I want.

(1) In my normal day-to-day use I often want an extra level of
cycling:  instead of
FOLDED --> CHILDREN --> SUBTREE-->FOLDED
I'd rather have
FOLDED--> CHILDREN --> ALL DESCENDANTS--> SUBTREE-->FOLDED


(2) For my rather pathetic "org-writers-room" mode
(https://github.com/titaniumbones/org-writers-room), I have a minor
mode for the left-hand "guide" buffer (see attached screenshot).
Essentially, it's a table of contents that you can look at while
you're working on a particular section of your document, which is
displayed in the 'main' window in the center of the frame, while
metadata from the properties drawer is displayed in third window on
the right (see attached screenshot if it's not stripped away).  In the
guide buffer, I would like to make all non-headline content
permanently invisible.  So org-cycle should cycle:
FOLDED-->CHILDREN-->FOLDED
(or FOLDED-->CHILDREN-->ALL DESCENDANTS-->FOLDED if possible)

and org-cycle-global should cycle:
OVERVIEW-->CONTENTS-->OVERVIEW


If there is a way to do this with relatively high-level existing
functions that would be great.  Otherwise, it seems I will have to
provide modified versions of org-cycle, org-cycle-internal-local,
org-cycle-global, and org-cyclel-interna-globall, and bind TAB and
S-TAB to them in the minor mode.  I hope I don't have to do that since
I find those functions, in org.el, somewhat difficult to follow.

Thank you everyone!

Matt

[-- Attachment #2: Screenshot from 2014-03-15 14:36:36.png --]
[-- Type: image/png, Size: 134473 bytes --]

                 reply	other threads:[~2014-03-15 18:46 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=CAN_Dec9UJ-DpiiZa5LG26m7R-H-0rBK0GPOgpYUXBbcDoFQoDQ@mail.gmail.com \
    --to=moptop99@gmail.com \
    --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).