summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el48
1 files changed, 42 insertions, 6 deletions
diff --git a/init.el b/init.el index 92c0fce..0382e8d 100644 --- a/init.el +++ b/init.el
@@ -415,7 +415,11 @@
415 org-src-window-setup 'current-window 415 org-src-window-setup 'current-window
416 org-startup-truncated nil 416 org-startup-truncated nil
417 org-startup-with-inline-images t 417 org-startup-with-inline-images t
418 org-tags-column (- (- fill-column (length org-ellipsis)))) 418 org-tags-column (- (- fill-column (length org-ellipsis)))
419 org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)"
420 "|" "DONE(d!)")
421 (sequence "|" "CANCELED(k!)")
422 (sequence "MEETING(m)")))
419 (:bind "RET" #'+org-return-dwim 423 (:bind "RET" #'+org-return-dwim
420 "<S-return>" #'+org-table-copy-down 424 "<S-return>" #'+org-table-copy-down
421 "C-c C-l" #'+org-insert-link-dwim 425 "C-c C-l" #'+org-insert-link-dwim
@@ -428,14 +432,46 @@
428 (org-link-set-parameters "tel" :follow #'+org-tel-open))) 432 (org-link-set-parameters "tel" :follow #'+org-tel-open)))
429 433
430(setup org-agenda 434(setup org-agenda
431 (:option org-agenda-skip-deadline-if-done t) 435 (:option org-agenda-skip-deadline-if-done t
432 (add-to-list '+custom-variable-allowlist 'org-agenda-file-regexp) 436 org-agenda-skip-scheduled-if-done t
433 (add-to-list '+custom-variable-allowlist 'org-agenda-templates) 437 org-agenda-span 10
434 (:+leader "a" #'org-agenda "C-a" #'org-agenda)) 438 org-agenda-include-diary nil ; I use the org-diary features
439 org-agenda-todo-ignore-deadlines 'near
440 org-agenda-todo-ignore-scheduled 'future
441 org-agenda-include-deadlines t
442 org-deadline-warning-days 0
443 org-agenda-show-future-repeats 'next)
444 (with-eval-after-load custom-file
445 (dolist (var '(org-agenda-files
446 org-agenda-file-regexp
447 org-agenda-templates))
448 (add-to-list '+custom-variable-allowlist var))
449 (add-to-list 'org-agenda-files (sync/ "org/" t)))
450 (:+leader "a" #'org-agenda "C-a" #'org-agenda)
451 (:hook #'hl-line-mode))
435 452
436(setup org-capture 453(setup org-capture
437 (:require +org-capture) 454 (:require +org-capture)
438 (:+leader "c" #'org-capture "C-c" #'org-capture)) 455 (:+leader "c" #'org-capture "C-c" #'org-capture)
456 (+org-capture-templates-setf "t" "Todo")
457 (+org-capture-templates-setf "tt"
458 '("Today!" entry (file "todo.org")
459 (concat "* TODO %^{Title}\n"
460 "DEADLINE: %t\n"
461 "\n%?")))
462 (+org-capture-templates-setf "ts"
463 '("Someday..." entry (file "todo.org")
464 (concat "* TODO %^{Title}\n"
465 ":PROPERTIES:\n"
466 ":CREATED: [%<%F %T>]\n"
467 ":END:\n"
468 "\n%?")))
469 (+org-capture-sort))
470
471(setup org-contacts
472 (:also-straight org-vcard) ; for importing Vcard files
473 (:option org-contacts-matcher "contact") ; Contacts are tagged "contact"
474 )
439 475
440(setup prog 476(setup prog
441 (:local-set comment-auto-fill-only-comments t) 477 (:local-set comment-auto-fill-only-comments t)