[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Can you automatically open a branch on load?
From: |
Hugo Schmitt |
Subject: |
Re: [Orgmode] Can you automatically open a branch on load? |
Date: |
Fri, 28 Dec 2007 17:12:17 -0300 |
Hello.
Something like this already works fine for me:
(add-hook 'org-mode-hook 'my-open-some-branch)
(defun my-open-some-branch ()
"Start org file with some particular branch opened."
(org-overview)
(save-excursion
(search-forward "Finances")
(org-show-entry)))
You can easily write a couple more lines so that the branch that will
be opened is configured on the top of the file itself.
HTH,
Hugo
On Dec 28, 2007 3:10 PM, Eddward DeVilla <address@hidden> wrote:
> I'm sure that you could write a function that you could call from an
> org-mode hook to do an occur or something like that. Unfortunately, I
> don't use org-occur much and the hook I think you need is in my .emacs
> at work. Given the right org-mode search function and the name of the
> hook, I think it should be easy to do. If someone doesn't beat me to
> it, I'll try and get you a better answer when I return to work or when
> I'm feel a little better and can do some digging.
>
> Edd
>
>
> On Dec 27, 2007 8:42 AM, <address@hidden> wrote:
> >
> > Is there an easy way to have a specific branch in your file open when
> > you load the file?
> >
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Remember: use `Reply All' to send replies to the list.
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>