diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-11-20 19:17:00 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-11-20 19:17:00 +0000 |
commit | cc377eda73d79a6bb92289ff1e8a335d58611159 (patch) | |
tree | 7ea0d461d9ba531cdca5a939d3b810e8a5221613 | |
parent | 945f8f8cdd1b78f429a2eeee47b30b3b3648dbbb (diff) | |
download | ymh-emacs-cc377eda73d79a6bb92289ff1e8a335d58611159.tar.gz ymh-emacs-cc377eda73d79a6bb92289ff1e8a335d58611159.zip |
Fix bug in sci-hub function
-rw-r--r-- | init.el | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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) |