emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] ·Open footnote link definition from reference directly


From: Leu Zhe
Subject: [O] ·Open footnote link definition from reference directly
Date: Mon, 28 Jul 2014 09:11:53 +0900

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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]