From: "Hugo Schmitt" <hugows@gmail.com>
To: Eddward DeVilla <eddward@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Can you automatically open a branch on load?
Date: Fri, 28 Dec 2007 17:12:17 -0300 [thread overview]
Message-ID: <2f1c7d020712281212o2ae39c68p2ee79a3968b8fe51@mail.gmail.com> (raw)
In-Reply-To: <b71b18520712281010g520f1d1fs601e648923281c1a@mail.gmail.com>
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 <eddward@gmail.com> 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, <adr3nald0s@gmail.com> 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.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> >
>
>
> _______________________________________________
> 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
>
next prev parent reply other threads:[~2007-12-28 20:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-27 14:42 Can you automatically open a branch on load? adr3nald0s
2007-12-28 18:10 ` Eddward DeVilla
2007-12-28 20:12 ` Hugo Schmitt [this message]
2007-12-28 20:26 ` Piotr Zielinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f1c7d020712281212o2ae39c68p2ee79a3968b8fe51@mail.gmail.com \
--to=hugows@gmail.com \
--cc=eddward@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.