;;; package  --- Summary

;;; Commentary:

;;; Code:

(require 'org-install)
(require 'org-agenda)
(require 'org-capture)

(setq org-adapt-indentation t
      org-agenda-files '("~/org/todo/agenda.org")
      org-agenda-scheduled-leaders '("" "")
      org-agenda-show-all-dates t
      org-agenda-skip-deadline-if-done t
      org-agenda-skip-scheduled-if-done t
      org-agenda-span 'day
      org-agenda-start-on-weekday 0 ;; always start the week view on Sunday
      org-agenda-use-time-grid nil
      org-deadline-warning-days 14
      org-default-notes-file "~/org/todo/agenda.org"
      org-directory "~/org/todo/"
      org-enforce-todo-checkbox-dependencies nil
      org-fast-tag-selection-single-key nil ;; 'expert is another option (see help)
      org-hide-emphasis-markers t
      org-hide-leading-stars t
      org-reverse-note-order nil
      org-special-ctrl-a/e t
      org-startup-folded 'content
      org-startup-indented nil ;;Ensure that org files are opened in outline view
      org-startup-with-latex-preview t
      org-log-repeat nil)

(setq org-capture-templates
      '(("e" "Events"      entry (file+headline "~/org/todo/agenda.org" "Events"     ) "* TODO Events: %?")
        ("m" "Comm/Plan"   entry (file+headline "~/org/todo/agenda.org" "Comm/Plan"  ) "* TODO Comm/Plan: %?")
        ("s" "SIG"         entry (file+headline "~/org/todo/agenda.org" "SIG"        ) "* TODO SIG: %?")
        ("p" "Pyregence"   entry (file+headline "~/org/todo/agenda.org" "Pyregence"  ) "* TODO Pyregence: %?")
        ("g" "GridFire"    entry (file+headline "~/org/todo/agenda.org" "GridFire"   ) "* TODO GridFire: %?")
        ("y" "GeoSync"     entry (file+headline "~/org/todo/agenda.org" "GeoSync"    ) "* TODO Geosync: %?")
        ("d" "DevDocs"     entry (file+headline "~/org/todo/agenda.org" "DevDocs"    ) "* TODO DevDocs: %?")
        ("G" "GridFire-UI" entry (file+headline "~/org/todo/agenda.org" "GridFire-UI") "* TODO GridFire-UI: %?")
        ("E" "Emacs"       entry (file+headline "~/org/tech-journal.org" "Emacs/Spacemacs") "* %?")
        ("A" "Sysadmin"    entry (file+headline "~/org/todo/agenda.org" "Sysadmin"   ) "* TODO Sysadmin: %?")
        ("j" "Journal entry" plain (function org-journal-find-location)
         "** %(format-time-string org-journal-time-format)%^{Title}\n%i%?" :jump-to-captured t :immediate-finish t)
        ("M" "Misc"        entry (file+headline "~/org/todo/agenda.org" "Misc"       ) "* TODO Misc: %?")))

(setq org-todo-keywords '((sequence  "TODO" "STARTED" "|" "DONE" "CANCELED"))
      org-todo-keyword-faces '(("TODO"     :foreground "red"          :weight bold)
                               ("STARTED"  :foreground "orange"       :weight bold)
                               ("DONE"     :foreground "forest green" :weight bold)
                               ("CANCELED" :foreground "black"        :weight bold)))

;;; org.el ends here
