Skip to content

Instantly share code, notes, and snippets.

@jethrokuan
Created December 20, 2019 07:31
Show Gist options
  • Save jethrokuan/78936a44f249e2c1a61b5184669a32d7 to your computer and use it in GitHub Desktop.
Save jethrokuan/78936a44f249e2c1a61b5184669a32d7 to your computer and use it in GitHub Desktop.
Agenda View
(setq jethro/org-agenda-todo-view
`(" " "Agenda"
((agenda ""
((org-agenda-span 'day)
(org-deadline-warning-days 365)))
(todo "TODO"
((org-agenda-overriding-header "To Refile")
(org-agenda-files '(,(concat jethro/org-agenda-directory "inbox.org")))))
(todo "TODO"
((org-agenda-overriding-header "Emails")
(org-agenda-files '(,(concat jethro/org-agenda-directory "emails.org")))))
(todo "NEXT"
((org-agenda-overriding-header "In Progress")
(org-agenda-files '(,(concat jethro/org-agenda-directory "someday.org")
,(concat jethro/org-agenda-directory "projects.org")
,(concat jethro/org-agenda-directory "next.org")))
))
(todo "TODO"
((org-agenda-overriding-header "Projects")
(org-agenda-files '(,(concat jethro/org-agenda-directory "projects.org")))
))
(todo "TODO"
((org-agenda-overriding-header "One-off Tasks")
(org-agenda-files '(,(concat jethro/org-agenda-directory "next.org")))
(org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline 'scheduled))))
nil)))
(add-to-list 'org-agenda-custom-commands `,jethro/org-agenda-todo-view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment