From cc377eda73d79a6bb92289ff1e8a335d58611159 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 20 Nov 2022 19:17:00 +0000 Subject: Fix bug in sci-hub function --- init.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 7568eb0..8762251 100644 --- a/init.el +++ b/init.el @@ -646,12 +646,12 @@ https://yannherklotz.com")) :bind (("C-c y b" . ebib)) :init (defun ymhg/ebib-create-identifier (key _) key) - (setq ebib-preload-bib-files '("~/Dropbox/bibliography/references.bib") - ebib-notes-default-file "~/Dropbox/bibliography/notes.org" - ebib-notes-template "* %T\n:PROPERTIES:\n%K\n:NOTER_DOCUMENT: papers/%k.pdf\n:END:\n%%?\n" - ebib-keywords (expand-file-name "~/Dropbox/bibliography/keywords.txt") - ebib-reading-list-file "~/Dropbox/bibliography/reading_list.org" - ebib-notes-storage 'multiple-notes-per-file) + (setq ebib-preload-bib-files '("~/Dropbox/bibliography/references.bib")) + (setq ebib-notes-default-file "~/Dropbox/bibliography/notes.org") + (setq ebib-notes-template "* %T\n:PROPERTIES:\n%K\n:NOTER_DOCUMENT: papers/%k.pdf\n:END:\n%%?\n") + (setq ebib-keywords (expand-file-name "~/Dropbox/bibliography/keywords.txt")) + (setq ebib-reading-list-file "~/Dropbox/bibliography/reading_list.org") + (setq ebib-notes-storage 'multiple-notes-per-file) :config (add-to-list 'ebib-notes-template-specifiers '(?k . ymhg/ebib-create-identifier)) (add-to-list 'ebib-file-search-dirs "~/Dropbox/bibliography/papers") @@ -675,7 +675,7 @@ https://yannherklotz.com")) (defun sci-hub-pdf-url (doi) "Get url to the pdf from SCI-HUB using DOI." (setq *doi-utils-pdf-url* (concat "https://sci-hub.hkvisa.net/" doi) ;captcha - ,*doi-utils-waiting* t + *doi-utils-waiting* t ) ;; try to find PDF url (if it exists) (url-retrieve (concat "https://sci-hub.hkvisa.net/" doi) -- cgit