4.5 KiB
4.5 KiB
Theme und Font
(setq doom-font (font-spec :family "JetBrainsMono Nerd Font Mono" :size 14))
(setq doom-theme 'doom-gruvbox)
General Settings
(setq display-line-numbers-type t)
Org Mode
(setq org-directory "~/org/")
(after! org
(setq org-default-notes-file (concat org-directory "inbox.org")
org-agenda-files (list (concat org-directory "inbox.org")
(concat org-directory "projects.org")
(concat org-directory "someday.org"))
org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAITING(w@/!)" "|" "DONE(d)" "CANCELLED(c@)"))))
Capture Templates
(after! org
(setq org-capture-templates
'(("t" "Task" entry
(file+headline "~/org/inbox.org" "Tasks")
"* TODO %?\n %U\n %a\n" :empty-lines 1)
("n" "Note" entry
(file+headline "~/org/inbox.org" "Notes")
"* %?\n %U\n" :empty-lines 1)
("j" "Journal" entry
(file+datetree "~/org/journal.org")
"* %?\n %U\n" :empty-lines 1))))
Org Roam
(after! org-roam
(setq org-roam-directory "~/org/roam/"
org-roam-dailies-directory "dailies/")
;; Node capture templates
(setq org-roam-capture-templates
'(("f" "Fleeting Note" plain
"%?"
:target (file+head "fleeting/%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+filetags: :fleeting:\n#+date: %U\n")
:unnarrowed t)
("e" "Evergreen Note" plain
"%?"
:target (file+head "evergreen/%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+filetags: :evergreen:\n#+date: %U\n")
:unnarrowed t)
("p" "Project" plain
(file "~/org/roam/templates/project.org")
:target (file+head "projects/%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n#+filetags: :project:active:\n#+date: %U\n")
:unnarrowed t)
("m" "MOC" plain
"%?"
:target (file+head "mocs/${slug}.org"
"#+title: ${title}\n#+filetags: :moc:\n")
:unnarrowed t)
("g" "Goal" plain
(file "~/org/roam/templates/goal.org")
:target (file+head "goals/${slug}.org"
"#+title: ${title}\n#+filetags: :goal:active:\n#+date: %U\n")
:unnarrowed t)))
;; Dailies templates
(setq org-roam-dailies-capture-templates
'(("d" "daily" plain
"%?"
:target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n#+filetags: :daily:\n\n* Today's Focus\n\n* Work\n** Tasks\n** Notes\n\n* Tech\n** Tasks\n** Notes\n\n* Personal\n** Tasks\n** Notes\n\n* Habits\n\n* Fleeting / Inbox\n")
:unnarrowed t
:immediate-finish t)
("w" "weekly review" plain
(file "~/org/roam/templates/weekly-review.org")
:target (file+head "reviews/%<%Y>-W%<%V>.org"
"#+title: Weekly Review W%<%V> %<%Y>\n#+filetags: :review:weekly:\n")
:unnarrowed t)
("m" "monthly review" plain
(file "~/org/roam/templates/monthly-review.org")
:target (file+head "reviews/%<%Y>-%<%m>.org"
"#+title: Monthly Review %<%B %Y>\n#+filetags: :review:monthly:\n")
:unnarrowed t)))
;; Point agenda at roam directory
(setq org-agenda-files (list "~/org/roam/"))
;; DB auto-sync
(org-roam-db-autosync-mode))
Agenda Views
(after! org
(setq org-agenda-custom-commands
'(("w" "Work" tags-todo "+work+active"
((org-agenda-overriding-header "Work — Active Tasks")))
("p" "Personal" tags-todo "+personal+active"
((org-agenda-overriding-header "Personal — Active Tasks")))
("t" "Tech" tags-todo "+tech+active"
((org-agenda-overriding-header "Tech — Active Tasks")))
("n" "All NEXT actions" tags-todo "+NEXT"
((org-agenda-overriding-header "All Next Actions")))
("A" "Full active" tags-todo "+active"
((org-agenda-overriding-header "Everything Active"))))))
Auto-revert (Syncthing)
(global-auto-revert-mode t)
(setq auto-revert-use-notify t)
PDF Tools
(after! pdf-tools
(setq pdf-view-continuous t
pdf-view-scroll-step 15
pdf-cache-image-limit 32
pdf-view-max-image-width 2400))