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-time-format "%.2m min"
|
||||
org-pomodoro-keep-killed-pomodoro-time t)
|
||||
;; Define capture templates
|
||||
;; Define declarative org capture remplates
|
||||
(use-package! doct
|
||||
:commands doct)
|
||||
(setq org-capture-templates
|
||||
'(("c" "Cookbook" entry (file "~/Notes/Recipes.org")
|
||||
"%(org-chef-get-recipe-from-url)"
|
||||
:empty-lines 1)))
|
||||
(doct `(("Cookbook" :keys "c"
|
||||
:file "~/Notes/Recipes.org"
|
||||
: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
|
||||
(setq org-chef-prefer-json-ld t)
|
||||
;; Get the current state of org-pomodoro
|
||||
|
@ -163,3 +178,7 @@
|
|||
(add-hook 'org-mode-hook 'org-fragtog-mode)
|
||||
;; Auto tangle on save
|
||||
(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)
|
||||
;; Enable LaTeX previews automatically
|
||||
(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