Set up org agenda with refile, decrease ltximg size, indent org

This commit is contained in:
eriedaberrie 2025-03-04 02:17:45 +00:00
parent b1010e4df6
commit c040803f0c

25
init.el
View file

@ -527,6 +527,7 @@
(org-mode . my-inhibit-hl-line-mode) (org-mode . my-inhibit-hl-line-mode)
(org-mode . my-double-space-sentence) (org-mode . my-double-space-sentence)
:custom :custom
(org-startup-indented t)
(org-startup-with-inline-images t) (org-startup-with-inline-images t)
(org-special-ctrl-a/e t) (org-special-ctrl-a/e t)
(org-insert-heading-respect-content t) (org-insert-heading-respect-content t)
@ -539,7 +540,25 @@
(shell . t) (shell . t)
(C . t) (C . t)
(asymptote . t))) (asymptote . t)))
(org-agenda-files '("~/Agenda")) (org-default-notes-file (expand-file-name "notes.org" org-directory))
(org-agenda-files (list (expand-file-name "agenda/" org-directory)))
(org-refile-targets '((org-agenda-files :maxlevel . 1)
(nil :maxlevel . 3)))
(org-agenda-include-diary t)
(org-capture-templates
(let ((todo (expand-file-name "todo.org" (car org-agenda-files))))
`(("t" "Todo" entry
(file+olp ,todo
"Tasks"
"General")
"* TODO %?\n %i"
:refile-targets ((,todo :level . 2)))
("T" "Todo with link" entry
(file+olp ,todo
"Tasks"
"General")
"* TODO %?\n %i\n %a"
:refile-targets ((,todo :level . 2))))))
;; NixOS minimal LaTeX setup ;; NixOS minimal LaTeX setup
(org-latex-compiler "lualatex") (org-latex-compiler "lualatex")
(org-preview-latex-default-process 'lua-dvisvgm) (org-preview-latex-default-process 'lua-dvisvgm)
@ -548,8 +567,8 @@
".ltximg/")) ".ltximg/"))
(org-latex-src-block-backend 'engraved) (org-latex-src-block-backend 'engraved)
:config :config
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.3) (setf (plist-get org-format-latex-options :scale) 1.1)
org-modules (append '(org-tempo org-habit) org-modules)) (add-to-list 'org-modules 'org-tempo)
;; Preview with lualatex to prevent errors when trying to load fontspec and ;; Preview with lualatex to prevent errors when trying to load fontspec and
;; others with pdflatex ;; others with pdflatex
(add-to-list (add-to-list