emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Hiding/Narrowing dblocks and keywords
@ 2011-01-30 20:28 Leonidas Tsampros
  2011-02-02 10:52 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Leonidas Tsampros @ 2011-01-30 20:28 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I'm a recent new happy org-mode user. While hacking around and using it
for various tasks/todos and schedules, it occured to me that keywords
and dynamic blocks take a lot of screen real estate while I do very
little editing on them.

Is there a way to have dblocks/keywords hidden/narrowed in a per buffer
manner?

Unfortuantely, I could not locate something similar in the manual or
google. I'm using Emacs 23.1 and Org 6.21b. 

Any input will be helpful.

Thanks,
Leonidas

PS: I'm not subscribed to this list, so please include me in the
replies.

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

* Re: Hiding/Narrowing dblocks and keywords
  2011-01-30 20:28 Hiding/Narrowing dblocks and keywords Leonidas Tsampros
@ 2011-02-02 10:52 ` Bastien
  2011-02-02 14:22   ` Leonidas Tsampros
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2011-02-02 10:52 UTC (permalink / raw)
  To: ltsampros; +Cc: emacs-orgmode

Hi Leonidas,

Leonidas Tsampros <ltsampros@upnet.gr> writes:

> I'm a recent new happy org-mode user. While hacking around and using it
> for various tasks/todos and schedules, it occured to me that keywords
> and dynamic blocks take a lot of screen real estate while I do very
> little editing on them.

You can now use this:

  M-x org-narrow-to-block RET (or C-x n b)

This work for all blocks, being source blocks or dynamic blocks.

(Note that the usual way of editing src block is to use C-c ' .)

> Is there a way to have dblocks/keywords hidden/narrowed in a per
> buffer manner?

I'm not sure I understand the part of your request re keywords,
though...  can you explicit a bit?

Thanks,

-- 
 Bastien

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

* Re: Hiding/Narrowing dblocks and keywords
  2011-02-02 10:52 ` Bastien
@ 2011-02-02 14:22   ` Leonidas Tsampros
  2011-02-02 15:38     ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Leonidas Tsampros @ 2011-02-02 14:22 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien <bastien.guerry@wikimedia.fr> writes:
> Hi Leonidas,
>
> Leonidas Tsampros <ltsampros@upnet.gr> writes:
>
>> I'm a recent new happy org-mode user. While hacking around and using it
>> for various tasks/todos and schedules, it occured to me that keywords
>> and dynamic blocks take a lot of screen real estate while I do very
>> little editing on them.
>
> You can now use this:
>
>   M-x org-narrow-to-block RET (or C-x n b)
>
> This work for all blocks, being source blocks or dynamic blocks.
>
> (Note that the usual way of editing src block is to use C-c ' .)
>

I cannot find such a command in my current version of Org-mode (6.21b)
so I'll have to upgrade first and then test. Thanks. 

>> Is there a way to have dblocks/keywords hidden/narrowed in a per
>> buffer manner?
>
> I'm not sure I understand the part of your request re keywords,
> though...  can you explicit a bit?
>
> Thanks,

Yes. Let's say I have a buffer like this:

#+LINK: blabla1 http://blablabla/%s
#+LINK: blabla2 http://blablabla2.org/%s
#+LINK: blabla3 http://blablabla3.org/%s
#+TODO: TODO1(t) | DONE1(d)

* test entry1
#+BEGIN clocktable :maxlevel 3 :scope file :link
Clock summary etc etc

<clock table would be here with multiple lines>
#+END:

My question is: Can I hide the keywords defined on the top of the buffer
and the keywords defined for the dynamic block that might be occurring
further in my tree?

Did I clarify my question enough? Or am I misunderstading the way
dblocks/keywords work?

Thanks,
Leonidas

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

* Re: Hiding/Narrowing dblocks and keywords
  2011-02-02 14:22   ` Leonidas Tsampros
@ 2011-02-02 15:38     ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2011-02-02 15:38 UTC (permalink / raw)
  To: Leonidas Tsampros; +Cc: emacs-orgmode

Hi Leonidas,

Leonidas Tsampros <ltsampros@upnet.gr> writes:

> My question is: Can I hide the keywords defined on the top of the buffer

You can hide *some* keywords with org-hidden-keywords.  The docstring
was not accurate, I just fixed it.  For example you can use:

  (setq org-hidden-keywords '(author)) 

to make the #+AUTHOR: keyword invisible.  You cannot use *any* keyword
though: only title, author, date, email.  I think it makes sense since
hiding other #+* keywords could be confusing (but I don't have a strong
opinion about this.)

> * test entry1
> #+BEGIN clocktable :maxlevel 3 :scope file :link
> Clock summary etc etc
>
> <clock table would be here with multiple lines>
> #+END:

You can hide #+begin blocks at startup with this:

  (setq org-hide-block-startup t)

There was a bug here preventing the folding of dynamic blocks, other
blocks were folding okay.

See also 

  M-x org-hide-block-all
  M-x org-hide-block-toggle

> Did I clarify my question enough? Or am I misunderstading the way
> dblocks/keywords work?

Hope I clarified some points, thanks!

-- 
 Bastien

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

end of thread, other threads:[~2011-02-02 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30 20:28 Hiding/Narrowing dblocks and keywords Leonidas Tsampros
2011-02-02 10:52 ` Bastien
2011-02-02 14:22   ` Leonidas Tsampros
2011-02-02 15:38     ` Bastien

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