Compare commits

..

2 Commits

2 changed files with 29 additions and 5 deletions

30
+org.el
View File

@ -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
@ -145,7 +160,8 @@
(after! org-noter (after! org-noter
(setq org-noter-always-create-frame nil (setq org-noter-always-create-frame nil
org-noter-doc-split-fraction '(0.7 . 0.3) org-noter-doc-split-fraction '(0.7 . 0.3)
org-noter-default-heading-title " ")) org-noter-default-heading-title " "
org-noter-separate-notes-from-heading nil))
;; Show latex preview automatically and increase its size ;; Show latex preview automatically and increase its size
(setq org-startup-with-latex-preview t (setq org-startup-with-latex-preview t
org-format-latex-options (plist-put org-format-latex-options :scale 3.0)) org-format-latex-options (plist-put org-format-latex-options :scale 3.0))
@ -163,3 +179,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)

View File

@ -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"))