emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Zhang Haijun <ccsmile2008@outlook.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [feature request] support content level in #+startup
Date: Wed, 06 Mar 2019 10:29:14 +0000	[thread overview]
Message-ID: <875zsws3d1.fsf@gmail.com> (raw)
In-Reply-To: <PS1PR06MB2759CBD630DB4D1609517318A8730@PS1PR06MB2759.apcprd06.prod.outlook.com> (Zhang Haijun's message of "Wed, 6 Mar 2019 01:43:55 +0000")

On Wednesday,  6 Mar 2019 at 01:43, Zhang Haijun wrote:
> I want to show headlines whose level is less than 3(level 1 and 2). Can 
> you support this? For example, support the following option:
>
> content:2         show headlines whose level is no larger than 2

If you eval (org-content 2), you will get what you want.  You can create
a simple inline src block that will evaluated this for you by C-c C-c:

   src_elisp{(org-content 2)}

or you can put this in your file local variables (which is what I do) so
that you get the opening view of the file as you want it.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.1-242-g7e98c5

  reply	other threads:[~2019-03-06 10:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06  1:43 [feature request] support content level in #+startup Zhang Haijun
2019-03-06 10:29 ` Eric S Fraga [this message]
     [not found]   ` <TY2PR06MB2766421C908215CAF9A7E2FFA8730@TY2PR06MB2766.apcprd06.prod.outlook.com>
2019-03-06 11:27     ` Eric S Fraga

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=875zsws3d1.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=ccsmile2008@outlook.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).