Bastien <bastienguerry <at> googlemail.com> writes:
> 
> #+begin_src emacs-lisp
> (add-hook 'org-mode-hook
>           (lambda ()
>           (when (outline-invisible-p)
>             (save-excursion
>               (outline-previous-visible-heading 1)
>               (org-show-subtree)))))
> #+end_src
> 
> Note that I removed the timer - no sure why it was useful.  Feel free to
> modify this hack the way you want on Worg.
> 


I added the timer, because I didn't know in which order the hooks
are run. If org-mode hook runs first and then saveplace's hook
which restores point then the above code has no effect.

The null timer guarantees the code runs when all the hooks are
executed.




_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to