From: "Jan Böcker" <jan.boecker@jboecker.de>
To: scrawler@gmail.com
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: questions about links
Date: Mon, 09 Aug 2010 09:33:31 +0200 [thread overview]
Message-ID: <4C5FAF4B.4090409@jboecker.de> (raw)
In-Reply-To: <20100807120001.55fdd1ec@bigblessing.tville>
On 08/07/2010 07:00 PM, scrawler@gmail.com wrote:
> Hi guys,
>
> Ok, if I make "foo" a link:
>
> blah blah [[foo]] blah
>
> it will pop over to "foo" elsewhere in the buffer.
>
> (This is a tangent, but I see carets in the documentation, like
> "<foo>" , but they don't seem to be needed-- the link finds
> "foo" just fine)
>
> Can I make [[foo]] link to all the foos in the buffer,
> maybe via a list with a bit of context from which to
> choose?
Try this one: [[elisp:(occur "foo")]]
"occur" is a standard emacs feature which lists all lines matching a
given regexp.
If you're going to use this, I'd recommend setting
org-confirm-elisp-link-function to 'with-y-or-n for less annoyance while
still being warned you are about to follow a link that can execute
arbitrary code.
> also, once I'm at the target, how can I return easily to
> the anchor and refold whatever section the target was in?
You can go back to where you came from using C-c &:
| C-c & runs the command org-mark-ring-goto, which is an interactive
| Lisp function in `org.el'.
|
| It is bound to C-c &.
|
| (org-mark-ring-goto &optional n)
|
| Jump to the previous position in the mark ring.
| With prefix arg n, jump back that many stored positions. When
| called several times in succession, walk through the entire ring.
| Org-mode commands jumping to a different position in the current file,
| or to another Org-mode file, automatically push the old position
| onto the ring.
I don't know about refolding the target headline.
HTH, Jan
next prev parent reply other threads:[~2010-08-09 7:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-07 17:00 questions about links scrawler
2010-08-09 7:33 ` Jan Böcker [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-08-07 19:12 scrawler
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=4C5FAF4B.4090409@jboecker.de \
--to=jan.boecker@jboecker.de \
--cc=emacs-orgmode@gnu.org \
--cc=scrawler@gmail.com \
/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.