From bcaee90f36224e54271cc51a349007de267ead70 Mon Sep 17 00:00:00 2001 From: fpi Date: Thu, 27 Feb 2020 10:20:34 +0100 Subject: Add a function to copy the doi from crossref-lookup --- emacs-init.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/emacs-init.org b/emacs-init.org index 7cdb1b9..3320179 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -2075,6 +2075,15 @@ pdf if available." (org-demote) (buffer-substring (point-min) (point-max))))) #+end_src +Here's a function to easily copy a doi from the results of =crossref-lookup=. +#+begin_src emacs-lisp +(defun fpi/biblio-get-doi () + (interactive) + (let ((doi (alist-get 'doi (cdr (biblio--selection-metadata-at-point))))) + (kill-new doi) + (message "Copied doi %s" doi))) +(define-key biblio-selection-mode-map "d" #'fpi/biblio-get-doi) +#+end_src *** Todo settings - WAITING tasks are waiting on the completion of other tasks - NEXT tasks can be picked up -- cgit v1.2.3