* ·Open footnote link definition from reference directly
@ 2014-07-28 0:11 Leu Zhe
0 siblings, 0 replies; only message in thread
From: Leu Zhe @ 2014-07-28 0:11 UTC (permalink / raw
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
Hi orgers,
I wrote a little snippet below to open footnote link definition directly
with a single call.
I think it will be very useful when you have a lot of link footnote
definitions in you documents.
Since I am a newbie to lisp, any advice of improvement will be really
appreciate.
(defun open-footnote-link ()
"Open footnote link directly without going to definition"
(interactive)
(save-excursion
(if (org-footnote-at-reference-p)
(progn
(org-footnote-action)
(forward-word)
(org-kill-note-or-show-branches)
(org-open-at-point))
(message "Must be in footnotes with link definition"))))
(global-set-key (kbd "C-c C-x l") 'open-footnote-link)
[-- Attachment #2: Type: text/html, Size: 1195 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-28 0:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 0:11 ·Open footnote link definition from reference directly Leu Zhe
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.