summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org77
1 files changed, 77 insertions, 0 deletions
diff --git a/config.org b/config.org index bbd9818..2620ee6 100644 --- a/config.org +++ b/config.org
@@ -1739,6 +1739,83 @@ I fix the headline spacing every time I save.
1739 (add-hook 'before-save-hook #'hook--org-mode-fix-blank-lines) 1739 (add-hook 'before-save-hook #'hook--org-mode-fix-blank-lines)
1740#+end_src 1740#+end_src
1741 1741
1742** Org Agenda
1743
1744#+begin_src emacs-lisp :noweb-ref settings
1745 (setq-default org-agenda-files
1746 (list
1747 (expand-file-name "inbox.org" org-directory)
1748 (expand-file-name "home.org" org-directory)
1749 (expand-file-name "work.org" org-directory))
1750 ;; agenda
1751 org-agenda-span 5
1752 org-agenda-skip-scheduled-if-done t
1753 org-agenda-skip-deadline-if-done t
1754 org-deadline-warning-days 0
1755 ;; logging
1756 org-log-into-drawer "LOGBOOK"
1757 org-log-done t)
1758#+end_src
1759
1760#+begin_src emacs-lisp :noweb-ref bindings
1761 (define-key acdw/leader (kbd "C-a") #'org-agenda)
1762#+end_src
1763
1764*** Org Todo Keywords
1765
1766These need some more thinking -- e.g., the MEETING sequence should
1767maybe be a type, or maybe I need to include those in something else
1768altogether. Hm.
1769
1770#+begin_src emacs-lisp :noweb-ref settings
1771 (setq-default org-todo-keywords
1772 '((sequence
1773 "TODO(t)" "STARTED(s)"
1774 "WAITING(w@/!)" "SOMEDAY(.)"
1775 "|" "DONE(x!)" "CANCELLED(c@/!)")
1776 (sequence "RECUR(r)" "|" "DONE(x!)")
1777 (sequence "MEETING(m)")))
1778#+end_src
1779
1780** Org Capture
1781
1782#+begin_src emacs-lisp :noweb-ref packages
1783 (require 'org-capture)
1784#+end_src
1785
1786#+begin_src emacs-lisp :noweb-ref bindings
1787 (with-eval-after-load 'org-capture
1788 (define-key acdw/leader (kbd "C-c") #'org-capture))
1789#+end_src
1790
1791I've still got a lot of thinking to do about what kinds of things I
1792want to capture, but I guess for now I can start with the basics:
1793TODO, and Diary.
1794
1795#+begin_src emacs-lisp :noweb-ref settings
1796 (defvar acdw/org-inbox-file (expand-file-name "inbox.org" org-directory))
1797 (defvar acdw/org-diary-file (expand-file-name "diary.org" org-directory))
1798 (setq-default
1799 org-capture-templates
1800 `(;; Todo -- these go to the Inbox for further processing
1801 ("t" "Quick Task" entry
1802 (file ,acdw/org-inbox-file)
1803 "* TODO %^{Task}\n"
1804 :immediate-finish t)
1805 ("T" "Task" entry
1806 (file ,acdw/org-inbox-file)
1807 "* TODO %^{Task}\n")
1808 ("." "Today" entry
1809 (file ,acdw/org-inbox-file)
1810 "* TODO %^{Task}\nSCHEDULED: %t\n"
1811 :immediate-finish t)
1812 ;; Diary -- for the special Diary file
1813 ("j" "Diary entry" entry
1814 (file+olp+datetree ,acdw/org-diary-file)
1815 "* %U\n\n%?"
1816 :empty-lines 1)))
1817#+end_src
1818
1742* Package management :package: 1819* Package management :package:
1743:PROPERTIES: 1820:PROPERTIES:
1744:header-args: :noweb-ref early-init-package 1821:header-args: :noweb-ref early-init-package