Re: [O] startup with 2 levels of headings shown?

2017-01-29 Thread Eric S Fraga
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


signature.asc
Description: PGP signature


Re: [O] startup with 2 levels of headings shown?

2017-01-29 Thread Marcin Borkowski

On 2017-01-29, at 12:56, Eric S Fraga  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



Re: [O] startup with 2 levels of headings shown?

2017-01-29 Thread Eric S Fraga
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


signature.asc
Description: PGP signature


Re: [O] startup with 2 levels of headings shown?

2017-01-27 Thread Thierry Banel
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:  :




[O] startup with 2 levels of headings shown?

2017-01-27 Thread Eric S Fraga
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


signature.asc
Description: PGP signature