Created
October 23, 2015 14:01
-
-
Save lislon/504482d073ea53974c5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun dotspacemacs/user-config () | |
| "Configuration function. | |
| This function is called at the very end of Spacemacs initialization after | |
| layers configuration." | |
| ;; Insert mode in capture mode | |
| (add-hook 'org-capture-mode-hook 'evil-insert-state) | |
| ;; Insert mode when adding headers | |
| (add-hook 'org-insert-heading-hook 'evil-insert-state) | |
| (setq org-todo-keywords | |
| '((sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "DELEGATED(l)" "DEFERRED(f)" "|" "CANCELLED(x)" "DONE(d)"))) | |
| (global-set-key "\C-cc" 'org-capture) | |
| (global-set-key "\C-ca" 'org-agenda) | |
| (custom-set-variables | |
| '(org-agenda-files (quote ("~/todo.org"))) | |
| '(org-default-notes-file "~/notes.org") | |
| '(org-agenda-ndays 7) | |
| '(org-deadline-warning-days 14) | |
| '(org-agenda-show-all-dates t) | |
| '(org-agenda-skip-deadline-if-done t) | |
| '(org-agenda-skip-scheduled-if-done t) | |
| '(org-agenda-start-on-weekday nil) | |
| '(org-reverse-note-order t) | |
| '(org-fast-tag-selection-single-key (quote expert)) | |
| '(org-agenda-custom-commands | |
| (quote (("d" todo "DELEGATED" nil) | |
| ("c" todo "DONE|DEFERRED|CANCELLED" nil) | |
| ("w" todo "WAITING" nil) | |
| ("W" agenda "" ((org-agenda-ndays 21))) | |
| ("A" agenda "" | |
| ((org-agenda-skip-function | |
| (lambda nil | |
| (org-agenda-skip-entry-if (quote notregexp) "\\=.*\\[#A\\]"))) | |
| (org-agenda-ndays 1) | |
| (org-agenda-overriding-header "Today's Priority #A tasks: "))) | |
| ("u" alltodo "" | |
| ((org-agenda-skip-function | |
| (lambda nil | |
| (org-agenda-skip-entry-if (quote scheduled) (quote deadline) | |
| (quote regexp) "\n]+>"))) | |
| (org-agenda-overriding-header "Unscheduled TODO entries: ")))))) | |
| ) | |
| (setq org-capture-templates (quote (("t" "todo" entry (file "~/todo.org") | |
| "* TODO %?\n%u") | |
| ("n" "note" entry (file "~/notes.org") | |
| "* %?") | |
| ))) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment