Re: [O] auto hiding src blocks upon toggling headers

2014-10-09 Thread Adriaan Sticker
Works perfectly! thanks! 2014-10-09 1:33 GMT+02:00 John Kitchin : > Sorry for the weird from email below. This was from me. I have a > separate email setup in Emacs for a class I am teaching. > > Instructor account writes: > > > Adriaan Sticker writes: > > > > This is not perfect but it seems c

Re: [O] auto hiding src blocks upon toggling headers

2014-10-08 Thread John Kitchin
Sorry for the weird from email below. This was from me. I have a separate email setup in Emacs for a class I am teaching. Instructor account writes: > Adriaan Sticker writes: > > This is not perfect but it seems close: > > #+BEGIN_SRC emacs-lisp > (defun my-hide (state) > (message "%s" state)

Re: [O] auto hiding src blocks upon toggling headers

2014-10-08 Thread Instructor account
Adriaan Sticker writes: This is not perfect but it seems close: #+BEGIN_SRC emacs-lisp (defun my-hide (state) (message "%s" state) (if (or (eq state 'children) (eq state 'subtree)) (save-restriction (org-narrow-to-subtree) (org-hide-block-all (add-hook 'o

[O] auto hiding src blocks upon toggling headers

2014-10-08 Thread Adriaan Sticker
Hi all Is there a way to automatically hide a source block when toggling the fold status of the parent header. Currently the hide status is remembered when folding its parent headers but this turned out not to be to practical in my current workflow. Greetings