This commit is contained in:
Michael Thomson 2025-04-21 22:12:12 -04:00
parent 9317418e88
commit 2d472f6acc
Signed by: mthomson
GPG Key ID: B6CA05EE5F436C79

View File

@ -310,24 +310,35 @@
(org-capture-templates (org-capture-templates
`(("i" "Inbox" entry (file "inbox.org") `(("i" "Inbox" entry (file "inbox.org")
,(concat "* TODO %?\n" ,(concat "* TODO %?\n"
"/Entered on/ %U")) "Entered on %U"))
("m" "Meeting" entry (file+headline "agenda.org" "Future")
,(concat "* %? :meeting:\n"
"<%<%Y-%m-%d %a %H:00>>"))
("n" "Note" entry (file "notes.org")
,(concat "* Note (%a)\n"
"Entered on %U\n" "\n" "%?"))
("@" "Inbox [mu4e]" entry (file "inbox.org") ("@" "Inbox [mu4e]" entry (file "inbox.org")
,(concat "* TODO Process \"%a\" %?\n" ,(concat "* TODO Process \"%a\" %?\n"
"/Entered on/ %U")))) "Entered on %U"))))
;; agenda config ;; agenda config
(org-agenda-files (list "everything.org" "inbox.org" "agenda.org" "notes.org")) (org-agenda-files (list "everything.org" "inbox.org" "agenda.org" "notes.org"))
:config ;; Refile
(add-to-list 'org-modules 'org-habit t) (setq org-refile-use-outline-path 'file)
:hook (setq org-outline-path-complete-in-steps nil)
(org-mode . org-indent-mode) ;; Indent text (setq org-refile-targets (quote ((nil :maxlevel . 9)
;; The following prevents <> from auto-pairing when electric-pair-mode is on. (org-agenda-files :maxlevel . 9))))
;; Otherwise, org-tempo is broken when you try to <s TAB... :config
(org-mode . (lambda () (add-to-list 'org-modules 'org-habit t)
(setq-local electric-pair-inhibit-predicate :hook
`(lambda (c) (org-mode . org-indent-mode) ;; Indent text
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c)))))) ;; The following prevents <> from auto-pairing when electric-pair-mode is on.
) ;; Otherwise, org-tempo is broken when you try to <s TAB...
(org-mode . (lambda ()
(setq-local electric-pair-inhibit-predicate
`(lambda (c)
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
)
(use-package toc-org (use-package toc-org
:commands toc-org-enable :commands toc-org-enable