emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* startup with 2 levels of headings shown?
@ 2017-01-27  8:57 Eric S Fraga
  2017-01-27 20:18 ` Thierry Banel
       [not found] ` <926d1c6eecb84371aad83226e6e1674a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-01-27  8:57 UTC (permalink / raw)
  To: emacs-orgmode

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

Hello,

Is there an easy way to have an org file start up with 2 levels of
headings shown without having to evaluate

(org-content 2)

?

E.g. it would be nice to be able to say:

#+startup: overview 2

or similar.  I only want this for some files (typically files intended
to be exported via beamer, i.e. presentation slides) as otherwise I
would use a hook.

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-241-gc3d67b

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: startup with 2 levels of headings shown?
  2017-01-27  8:57 startup with 2 levels of headings shown? Eric S Fraga
@ 2017-01-27 20:18 ` Thierry Banel
       [not found] ` <926d1c6eecb84371aad83226e6e1674a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Thierry Banel @ 2017-01-27 20:18 UTC (permalink / raw)
  To: emacs-orgmode

Le 27/01/2017 09:57, Eric S Fraga a écrit :
> Hello,
>
> Is there an easy way to have an org file start up with 2 levels of
> headings shown without having to evaluate
>
> (org-content 2)
>
> ?
>
> E.g. it would be nice to be able to say:
>
> #+startup: overview 2
>
> or similar.  I only want this for some files (typically files intended
> to be exported via beamer, i.e. presentation slides) as otherwise I
> would use a hook.
>
> Thanks,
> eric
>

I have that at the end of the file:

  : Local Variables:      :
  : coding:utf-8          :
  : eval:(org-shifttab 2) :
  : End:                  :

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: startup with 2 levels of headings shown?
       [not found] ` <926d1c6eecb84371aad83226e6e1674a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-01-29 11:56   ` Eric S Fraga
  2017-01-29 15:25     ` Marcin Borkowski
       [not found]     ` <52e1d0bec9114536bbd727119c71c4fd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-01-29 11:56 UTC (permalink / raw)
  To: emacs-orgmode

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

On Friday, 27 Jan 2017 at 20:18, Thierry Banel wrote:

[...]

> I have that at the end of the file:
>
>   : Local Variables:      :
>   : coding:utf-8          :
>   : eval:(org-shifttab 2) :
>   : End:                  :

Thanks.

I do something similar already but I would like to avoid eval statements
in general.  They interfere in the flow by requiring confirmation [1] so
I was hoping at a configuration variable or startup setting would be
possible.

eric


Footnotes: 
[1]  I am not sure if confirmation of eval statements can be turned off
but I wouldn't want to do so generally in any case.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.3-241-gc3d67b

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: startup with 2 levels of headings shown?
  2017-01-29 11:56   ` Eric S Fraga
@ 2017-01-29 15:25     ` Marcin Borkowski
       [not found]     ` <52e1d0bec9114536bbd727119c71c4fd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2017-01-29 15:25 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode


On 2017-01-29, at 12:56, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> On Friday, 27 Jan 2017 at 20:18, Thierry Banel wrote:
>
> [...]
>
>> I have that at the end of the file:
>>
>>   : Local Variables:      :
>>   : coding:utf-8          :
>>   : eval:(org-shifttab 2) :
>>   : End:                  :
>
> Thanks.
>
> I do something similar already but I would like to avoid eval statements
> in general.  They interfere in the flow by requiring confirmation [1] so
> I was hoping at a configuration variable or startup setting would be
> possible.
>
> eric
>
> Footnotes: 
> [1]  I am not sure if confirmation of eval statements can be turned off
> but I wouldn't want to do so generally in any case.

How about checking out `safe-local-eval-forms'?

Hth,

-- 
Marcin Borkowski

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: startup with 2 levels of headings shown?
       [not found]     ` <52e1d0bec9114536bbd727119c71c4fd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2017-01-29 17:23       ` Eric S Fraga
  0 siblings, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2017-01-29 17:23 UTC (permalink / raw)
  To: emacs-orgmode

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

On Sunday, 29 Jan 2017 at 15:25, Marcin Borkowski wrote:
> How about checking out `safe-local-eval-forms'?

Ah, of course, I should have know that emacs would have something
appropriate!  I already have safe-local-variable-values...

Thanks,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50.1, Org release_9.0.4-242-g2c27b8

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-29 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27  8:57 startup with 2 levels of headings shown? Eric S Fraga
2017-01-27 20:18 ` Thierry Banel
     [not found] ` <926d1c6eecb84371aad83226e6e1674a@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-29 11:56   ` Eric S Fraga
2017-01-29 15:25     ` Marcin Borkowski
     [not found]     ` <52e1d0bec9114536bbd727119c71c4fd@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-01-29 17:23       ` Eric S Fraga

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