Format +org file

This commit is contained in:
coolneng 2022-11-17 15:20:03 +01:00
parent 4517547396
commit 6bb4e798c3
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 45 additions and 46 deletions

91
+org.el
View File

@ -15,35 +15,35 @@
(use-package! org-super-agenda (use-package! org-super-agenda
:after org-agenda :after org-agenda
:init :init
(setq org-agenda-skip-scheduled-if-done t (setq org-agenda-skip-scheduled-if-done t
org-agenda-skip-deadline-if-done t org-agenda-skip-deadline-if-done t
org-agenda-include-deadlines t org-agenda-include-deadlines t
org-agenda-tags-column 100 org-agenda-tags-column 100
org-agenda-block-separator nil org-agenda-block-separator nil
org-agenda-compact-blocks t) org-agenda-compact-blocks t)
(setq org-super-agenda-groups '((:name "Overdue" (setq org-super-agenda-groups '((:name "Overdue"
:deadline past) :deadline past)
(:name "Today" (:name "Today"
:time-grid t :time-grid t
:scheduled today :scheduled today
:deadline today) :deadline today)
(:name "Important" (:name "Important"
:priority "A") :priority "A")
(:name "Assignments" (:name "Assignments"
:tag "labs" :tag "labs"
:order 10) :order 10)
(:name "Study" (:name "Study"
:tag "study" :tag "study"
:order 10) :order 10)
(:name "Thesis" (:name "Thesis"
:tag "thesis" :tag "thesis"
:order 10) :order 10)
(:name "Mails" (:name "Mails"
:tag "mail" :tag "mail"
:order 10) :order 10)
(:name "Periodic" (:name "Periodic"
:tag "periodic" :tag "periodic"
:order 10))) :order 10)))
:config :config
(org-super-agenda-mode)) (org-super-agenda-mode))
;; Add timestamp to DONE task ;; Add timestamp to DONE task
@ -75,16 +75,16 @@
;; Add org-plain-latex ;; Add org-plain-latex
(after! ox-latex (after! ox-latex
(add-to-list 'org-latex-classes (add-to-list 'org-latex-classes
'("org-plain-latex" '("org-plain-latex"
"\\documentclass{article} "\\documentclass{article}
[NO-DEFAULT-PACKAGES] [NO-DEFAULT-PACKAGES]
[PACKAGES] [PACKAGES]
[EXTRA]" [EXTRA]"
("\\section{%s}" . "\\section*{%s}") ("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
;; Prettify code block export ;; Prettify code block export
(use-package! engrave-faces-latex (use-package! engrave-faces-latex
:after ox-latex) :after ox-latex)
@ -115,17 +115,16 @@
:type entry :type entry
:template ("%(org-chef-get-recipe-from-url)")) :template ("%(org-chef-get-recipe-from-url)"))
("Reference" :keys "r" ("Reference" :keys "r"
:type entry :type entry
:file "~/Documents/Uni/Thesis/docs/Bibliography.org" :file "~/Documents/Uni/Thesis/docs/Bibliography.org"
:function org-goto :function org-goto
:fetch-bibtex (lambda () (org-capture-ref-process-capture)) :fetch-bibtex (lambda () (org-capture-ref-process-capture))
:org-entry (lambda () (org-capture-ref-get-org-entry)) :org-entry (lambda () (org-capture-ref-get-org-entry))
:template :template
("%{fetch-bibtex}* %?%{space}%(org-capture-ref-get-bibtex-field :title)" ("%{fetch-bibtex}* %?%{space}%(org-capture-ref-get-bibtex-field :title)"
"#+begin_src bibtex" "#+begin_src bibtex"
"%(org-capture-ref-get-bibtex-field :bibtex-string)" "%(org-capture-ref-get-bibtex-field :bibtex-string)"
"#+end_src"))))) "#+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