Minor update

This commit is contained in:
Thomas Dehaeze 2020-03-19 10:10:11 +01:00
parent 7c8359f324
commit 74af122c97

View File

@ -1434,10 +1434,10 @@ Nice Functions:
;; Tell org-ref to let helm-bibtex find notes for it ;; Tell org-ref to let helm-bibtex find notes for it
(setq org-ref-notes-function (setq org-ref-notes-function
(lambda (thekey) (lambda (thekey)
(let ((bibtex-completion-bibliography (org-ref-find-bibliography))) (let ((bibtex-completion-bibliography (org-ref-find-bibliography)))
(bibtex-completion-edit-notes (bibtex-completion-edit-notes
(list (car (org-ref-get-bibtex-key-and-file thekey))))))) (list (car (org-ref-get-bibtex-key-and-file thekey)))))))
;; Problem with speed: don't display broken links ;; Problem with speed: don't display broken links
(setq org-ref-show-broken-links t) (setq org-ref-show-broken-links t)
@ -1445,20 +1445,20 @@ Nice Functions:
(setq org-ref-show-citation-on-enter t) (setq org-ref-show-citation-on-enter t)
(add-to-list 'org-ref-helm-user-candidates (add-to-list 'org-ref-helm-user-candidates
'("Open pdf in Zathura" . (lambda () (call-process "zathura" nil 0 nil (concat '("Open pdf in Zathura" . (lambda () (call-process "zathura" nil 0 nil (concat
(file-name-as-directory org-ref-pdf-directory) (file-name-as-directory org-ref-pdf-directory)
(car (org-ref-get-bibtex-key-and-file)) (car (org-ref-get-bibtex-key-and-file))
".pdf")))) ".pdf"))))
t) t)
(add-to-list 'org-ref-helm-user-candidates (add-to-list 'org-ref-helm-user-candidates
'("Drag and Drop" . (lambda () (call-process "/bin/bash" nil 0 nil "-c" (concat '("Drag and Drop" . (lambda () (call-process "/bin/bash" nil 0 nil "-c" (concat
"dragon-drag-and-drop " "dragon-drag-and-drop "
(file-name-as-directory org-ref-pdf-directory) (file-name-as-directory org-ref-pdf-directory)
(car (org-ref-get-bibtex-key-and-file)) (car (org-ref-get-bibtex-key-and-file))
".pdf")))) ".pdf"))))
t) t)
)
(map! (map!
:map org-mode-map :map org-mode-map
(:desc "Insert Link" (:desc "Insert Link"