emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] hide #+ lines?


From: Filippo A. Salustri
Subject: Re: [O] hide #+ lines?
Date: Sat, 19 Mar 2011 21:58:33 -0400

You're right of course.  Sorry about the mixup with the attribution.
Nick, your previous post that mentioned org-drawers helped my hide the
eval line.  Thanks for that.

As for the #+BEGIN block, my installation shows these lines in a
rather gaudy orange, which I do find distracting.
I found that those lines do have their own face, so I made 'em dark
grey (my background is black).  I can still see them, but it's the
text in the block that stands out now.

Cheers.
Fil

On 19 March 2011 21:42, Nick Dokos <address@hidden> wrote:
> Filippo A. Salustri <address@hidden> wrote:
>
>>
>> On 19 March 2011 18:26, Nick Dokos <address@hidden> wrote:
>> ...
>> > Another similar solution (cribbed from this list, but I don't remember
>> > who suggested it) is to define a drawer and put all that stuff in it -
>
> That was Carsten: see 
> http://thread.gmane.org/gmane.emacs.orgmode/2722/focus=2732
> and there is another bit of setup needed to keep the drawer closed to begin
> with. Carsten suggested
>
> (add-hook 'org-mode-hook
>       (lambda () (org-cycle-hide-drawers 'all)))
>
>>
>> Juan & Nick,
>> I like your ideas, but my case is a little different.  I only want to
>> hide the BEGIN/END statements, not what comes between them.
>> That is, I'm using a trick Ido Magal suggested
>> (http://permalink.gmane.org/gmane.emacs.orgmode/39226).
>> It works fine, except I see all the distracting block directives.
>>
>
> The first line in the posting you point to is not org-mode related at
> all: it asks emacs to eval the form when the file is visited. Since
> emacs requires that to be the *first* line you cannot do anything about
> that. However, there is another way to specify local variables: in a
> "Local variables" section at the end of the file. That *can* be put into a
> drawer:
>
> :SETUP:
> # Local variables:
> # eval: (org-update-all-dblocks)
> # End:
> :END:
>
> but it becomes the "personal property" of the last headline, so if that
> is folded, the drawer is completely invisible and if it's deep in the
> tree it becomes difficult to find. I would put it under its own
> headline, perhaps "* COMMENT setup".
>
> The #+BEGIN: ... / #+END surrounding the output of the dblock cannot be
> hidden afaik, but are they really distracting? I find them helpful in
> focusing my eyes on the output.
>
> Nick
>
>
>



-- 
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: address@hidden
http://deseng.ryerson.ca/~fil/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]