org-yank-adjusted-subtrees t)
(add-hook 'org-agenda-mode-hook #'hl-line-mode)
+
+(setq org-todo-keyword-faces '(("WAITING" :foreground "orange" :weight bold)
+ ("UNDERTAKEN" :foreground "magenta" :weight bold)
+ ("MEETING" :foreground "blue" :weight bold)))
+\f
+;; Time Clocking
+(org-clock-persistence-insinuate)
+(setq org-clock-history-length 10
+ org-clock-in-resume t
+ org-clock-out-remove-zero-time-clocks t
+ org-clock-persist t
+ org-clock-persist-query-resume nil
+ org-clock-report-include-clocking-task t
+ org-time-stamp-rounding-minutes '(1 1))
+
\f
;; Agenda and capture
-(setq org-agenda-files '("~/org/inbox.org"
- "~/org/undertakings.org"
- "~/org/next.org"
- "~/org/meetings.org"))
+(setq org-agenda-files '("~/org/"))
;; Allow 9 levels in current file, any other org file, allow toplevel refile, and allow creation of new parents
(setq org-refile-targets '((nil :maxlevel . 9)
'(("i" "Inbox" entry
(file "inbox.org")
"* %^{Description}\nAdded: %U\n%?"
- :empty-lines-before 1)
+ :empty-lines-before 1
+ :clock-in t
+ :clock-resume t)
("n" "Next Item" entry
(file "next.org")
"* TODO %^{Description} %^{tags}G\nAdded: %U\n%?"
- :empty-lines-before 1)
+ :empty-lines-before 1
+ :clock-in t
+ :clock-resume t)
("u" "Undertake" entry
(file "undertakings.org")
"* UNDERTAKEN %^{Description}\nAdded: %U\n%?"
- :empty-lines-before 1)
+ :empty-lines-before 1
+ :clock-in t
+ :clock-resume t)
("m" "Meeting" entry
(file "agenda.org")
"* %^{Description}\n%^{Scheduled:}T\n%?"
- :empty-lines-before 1)))
+ :empty-lines-before 1
+ :clock-in t
+ :clock-resume t)
+ ("p" "Phone Call" entry
+ (file "inbox.org")
+ "* %^{Description} :call:\nAdded: %U\n%?"
+ :empty-lines-before 1
+ :clock-in t
+ :clock-resume t)))
(setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id
org-id-method 'ts
("C-c a" . org-agenda)
("C-c c" . org-capture)
("C-c b" . org-switchb)
+ ("<f10>" . org-clock-out)
+ ("<f2>" . org-clock-goto)
:map org-mode-map
("M-<right>" . org-shiftmetaright)
("M-<left>" . org-shiftmetaleft)
("C-M-b" . org-backward-heading-same-level)
("C-M-f" . org-forward-heading-same-level)
("C-M-p" . org-previous-visible-heading)
- ("C-M-n" . org-next-visible-heading)))
+ ("C-M-n" . org-next-visible-heading)
+ ("<f9>" . org-clock-in)))
(use-package howm
:config