emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Vitaly <jauthu@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Fwd: request of numeric arguments handling by +STARTUP: content
Date: Sun, 24 Feb 2013 09:01:32 +0300	[thread overview]
Message-ID: <CAADtcTu7EqK38+jfXZQpCbYU63JQvAooL8=odbn8CyGB6Oo0mw@mail.gmail.com> (raw)
In-Reply-To: <CAADtcTsDZYjPKNT_oaMvZD4c6XGur0Qw-Z+mHRWFB=pFB_gxEQ@mail.gmail.com>

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

I want to have CONTENTS showing headlines up to particular level N when
open file. I couldn't find such a thing in docs and VISIBILITY can't be
used since it takes no arguments too, so having multiple VISIBILITY
properties in every top-level headline is a bit stupid, not saying that it
can not solve the problem fully, because it also doesn't take argument for
"children" or "content".

Why not handling this somewhere in "+STARTUP: content N" or anywhere
similar? Since org-mode handles arguments for org-global-cycle, why not
handle them on startup?

I managed to get this behavior simply by calling the (org-global-cycle N)
in find-file-hook, but this is somewhat dirty.

Regards, Vitaly

// Sorry if this is duplicate. I tried to send it being not subscribed
before.

[-- Attachment #2: Type: text/html, Size: 967 bytes --]

  reply	other threads:[~2013-02-24  6:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-24  5:55 request of numeric arguments handling by +STARTUP: content Vitaly
2013-02-24  6:01 ` Vitaly [this message]
2013-02-24  8:18   ` Fwd: " Bastien

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='CAADtcTu7EqK38+jfXZQpCbYU63JQvAooL8=odbn8CyGB6Oo0mw@mail.gmail.com' \
    --to=jauthu@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).