From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [feature request] support content level in #+startup Date: Wed, 06 Mar 2019 10:29:14 +0000 Message-ID: <875zsws3d1.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Tni-0002Hw-3f for emacs-orgmode@gnu.org; Wed, 06 Mar 2019 05:29:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1Tne-0002UJ-6g for emacs-orgmode@gnu.org; Wed, 06 Mar 2019 05:29:24 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:45328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1Tnc-0002RJ-7M for emacs-orgmode@gnu.org; Wed, 06 Mar 2019 05:29:20 -0500 Received: by mail-wr1-x42f.google.com with SMTP id w17so12754196wrn.12 for ; Wed, 06 Mar 2019 02:29:17 -0800 (PST) In-Reply-To: (Zhang Haijun's message of "Wed, 6 Mar 2019 01:43:55 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Zhang Haijun Cc: "emacs-orgmode@gnu.org" 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