Set up org protocol to capture citations
This commit is contained in:
parent
0e39dd1adb
commit
6404fe9d37
27
+org.el
27
+org.el
|
@ -106,11 +106,26 @@
|
||||||
org-pomodoro-audio-player "pw-play"
|
org-pomodoro-audio-player "pw-play"
|
||||||
org-pomodoro-time-format "%.2m min"
|
org-pomodoro-time-format "%.2m min"
|
||||||
org-pomodoro-keep-killed-pomodoro-time t)
|
org-pomodoro-keep-killed-pomodoro-time t)
|
||||||
;; Define capture templates
|
;; Define declarative org capture remplates
|
||||||
|
(use-package! doct
|
||||||
|
:commands doct)
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("c" "Cookbook" entry (file "~/Notes/Recipes.org")
|
(doct `(("Cookbook" :keys "c"
|
||||||
"%(org-chef-get-recipe-from-url)"
|
:file "~/Notes/Recipes.org"
|
||||||
:empty-lines 1)))
|
:type entry
|
||||||
|
:template ("%(org-chef-get-recipe-from-url)"))
|
||||||
|
("Reference" :keys "r"
|
||||||
|
:type entry
|
||||||
|
:file "~/Documents/Uni/Thesis/docs/Bibliography.org"
|
||||||
|
:function org-goto
|
||||||
|
:fetch-bibtex (lambda () (org-capture-ref-process-capture))
|
||||||
|
:org-entry (lambda () (org-capture-ref-get-org-entry))
|
||||||
|
:template
|
||||||
|
("%{fetch-bibtex}* %?%{space}%(org-capture-ref-get-bibtex-field :title)"
|
||||||
|
"#+begin_src bibtex"
|
||||||
|
"%(org-capture-ref-get-bibtex-field :bibtex-string)"
|
||||||
|
"#+end_src")))))
|
||||||
|
(setq org-capture-ref-headline-tags nil)
|
||||||
;; Fix org-chef scraping
|
;; Fix org-chef scraping
|
||||||
(setq org-chef-prefer-json-ld t)
|
(setq org-chef-prefer-json-ld t)
|
||||||
;; Get the current state of org-pomodoro
|
;; Get the current state of org-pomodoro
|
||||||
|
@ -163,3 +178,7 @@
|
||||||
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
||||||
;; Auto tangle on save
|
;; Auto tangle on save
|
||||||
(add-hook 'org-mode-hook 'org-auto-tangle-mode)
|
(add-hook 'org-mode-hook 'org-auto-tangle-mode)
|
||||||
|
;; Save bibtex to annotated bibliography with category selection
|
||||||
|
(setq org-goto-interface 'outline-path-completion
|
||||||
|
org-goto-max-level 1)
|
||||||
|
(use-package! org-capture-ref)
|
||||||
|
|
|
@ -22,3 +22,7 @@
|
||||||
(package! org-auto-tangle)
|
(package! org-auto-tangle)
|
||||||
;; Enable LaTeX previews automatically
|
;; Enable LaTeX previews automatically
|
||||||
(package! org-fragtog)
|
(package! org-fragtog)
|
||||||
|
;; Fetch and save bibtex from Firefox
|
||||||
|
(package! asoc :recipe (:host github :repo "troyp/asoc.el"))
|
||||||
|
(package! doct :recipe (:host github :repo "progfolio/doct"))
|
||||||
|
(package! org-capture-ref :recipe (:host github :repo "yantar92/org-capture-ref"))
|
||||||
|
|
Loading…
Reference in New Issue