Compare commits
2 Commits
0e39dd1adb
...
4517547396
Author | SHA1 | Date |
---|---|---|
coolneng | 4517547396 | |
coolneng | 6404fe9d37 |
30
+org.el
30
+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
|
||||
|
@ -145,7 +160,8 @@
|
|||
(after! org-noter
|
||||
(setq org-noter-always-create-frame nil
|
||||
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
|
||||
(setq org-startup-with-latex-preview t
|
||||
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)
|
||||
;; 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