emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Question about local variables block
@ 2010-09-15 15:38 Robert Goldman
  2010-09-15 17:06 ` Sebastian Rose
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Goldman @ 2010-09-15 15:38 UTC (permalink / raw)
  To: Org Mode

I've been putting local variables blocks at the bottom of some of my
org-mode files (in particular, those files that I share with others).

The problem is that having a local variables block at the bottom of the
file, at least if it uses # as a virtual comment character, doesn't
dovetail nicely with org's folding behavior.  I find if I fold the
bottom-most header line in such an org-mode file, my local variables
block gets folded into that header inappropriately.

So is there some way to format a local variables block at the bottom of
a file so that org-mode knows that it's a local variables block and not
part of the outline?

thanks,
r

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

* Re: Question about local variables block
  2010-09-15 15:38 Question about local variables block Robert Goldman
@ 2010-09-15 17:06 ` Sebastian Rose
  2010-09-15 18:10   ` Robert Goldman
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Rose @ 2010-09-15 17:06 UTC (permalink / raw)
  To: rpgoldman; +Cc: Org Mode

Robert Goldman <rpgoldman@sift.info> writes:
> I've been putting local variables blocks at the bottom of some of my
> org-mode files (in particular, those files that I share with others).
>
> The problem is that having a local variables block at the bottom of the
> file, at least if it uses # as a virtual comment character, doesn't
> dovetail nicely with org's folding behavior.  I find if I fold the
> bottom-most header line in such an org-mode file, my local variables
> block gets folded into that header inappropriately.
>
> So is there some way to format a local variables block at the bottom of
> a file so that org-mode knows that it's a local variables block and not
> part of the outline?


Not that I'm aware of it.

But you could use a special comment section:



* COMMENT local varibles

# Local Variables:
# mode: org
# fill-column: 70
# End:




HTH

  Sebastian

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

* Re: Question about local variables block
  2010-09-15 17:06 ` Sebastian Rose
@ 2010-09-15 18:10   ` Robert Goldman
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Goldman @ 2010-09-15 18:10 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: Org Mode

On 9/15/10 Sep 15 -12:06 PM, Sebastian Rose wrote:
> Robert Goldman <rpgoldman@sift.info> writes:
>> I've been putting local variables blocks at the bottom of some of my
>> org-mode files (in particular, those files that I share with others).
>>
>> The problem is that having a local variables block at the bottom of the
>> file, at least if it uses # as a virtual comment character, doesn't
>> dovetail nicely with org's folding behavior.  I find if I fold the
>> bottom-most header line in such an org-mode file, my local variables
>> block gets folded into that header inappropriately.
>>
>> So is there some way to format a local variables block at the bottom of
>> a file so that org-mode knows that it's a local variables block and not
>> part of the outline?
> 
> 
> Not that I'm aware of it.
> 
> But you could use a special comment section:
> 
> 
> 
> * COMMENT local varibles
> 
> # Local Variables:
> # mode: org
> # fill-column: 70
> # End:
> 
> 
> 
> 
> HTH


Yes, thank you very much; that's exactly what I needed to know.

best,
R

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

end of thread, other threads:[~2010-09-15 18:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-15 15:38 Question about local variables block Robert Goldman
2010-09-15 17:06 ` Sebastian Rose
2010-09-15 18:10   ` Robert Goldman

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