Skip to content

Instantly share code, notes, and snippets.

@c02y
Last active April 16, 2019 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c02y/89ba21f23673674d7a5d2bcbdb989aa9 to your computer and use it in GitHub Desktop.
Save c02y/89ba21f23673674d7a5d2bcbdb989aa9 to your computer and use it in GitHub Desktop.
comment out the STDOUT part
;; ;; omit the result to STDOUT after return when using emacs/emacsclient -e "expression"
;; (when (not (display-graphic-p))
;; (define-advice server-eval-and-print (:filter-args (args) no-print)
;; (list (car args) nil)))
(setq org-agenda-custom-commands
'(("c" "Simple agenda view"
((tags "PRIORITY=\"A\""
((org-agenda-skip-function '(org-agenda-skip-entry-if 'todo 'done))
(org-agenda-overriding-header "High-priority unfinished tasks:")))
(agenda "")
(alltodo "")))
))
(setq org-capture-templates
'(("a" "My TODO task format." entry
(file "~/Org/todo.org")
"* TODO %?
SCHEDULED: %t")))
;; search all items including archives
(setq org-agenda-text-search-extra-files '(agenda-archives))
;; mark all children DONE when mark parent DONE
(setq org-enforce-todo-dependencies t)
(setq org-log-reschedule 'time)
(bind-key* "C-c a" 'org-agenda)
(setq org-agenda-span 15
org-agenda-start-on-weekday nil
org-agenda-start-day "-7d")
;; Use specific fils as source of agenda
(setq org-agenda-files
(list "~/Org/todo.org"
;; "~/Org/school.org"
;; "~/Org/home.org"
))
;; include all files in ~/Org as the source of org-agenda
;; (setq org-agenda-files '("~/Org/"))
(setq org-todo-keywords
'((sequence "TODO(t)" "IN-PROGRESS(i)" "WAITING(w)" "|" "DONE(d)" "CANCELED(c)")
;; multiple sets for one file
;; (sequence "REPORT(r)" "BUG(b)" "KNOWNCAUSE(k)""|" "FIXED(f)")
;; (sequence "|" "CANCELED(c)")
))
# delete "C-c a" bingind in org-mode-map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment