 (setq org-capture-templates
       '(("t" "TODO" entry
          (file+headline "gtd.org" "Tasks")
-         "* TODO %^{Next-action description} %^g\n%?\n")
+         "* TODO %^{Next-action description} %^g\n%U%?")
         ("c" "Collect" entry
          (file+headline "gtd.org" "In")
-         "* %^{Brief description}\n%?\n")))
+         "* %^{Brief description}\n%U%?")))
 
 ;; org-mobile settings
 (setq org-mobile-directory "~/Dropbox/MobileOrg")

      '((sequence "TODO(t)" "STARTED(s)" "WAITING(w)" "DEFERRED(f)" "APPT(a)"
                  "|" "DONE(d)" "CANCELLED(c)")))
(put 'org-toggle-time-stamp-overlays 'disabled
     (concat "I don't use timestamp overlays.\n"
             "This command is usually invoked as an accident.\n"))
(setq org-refile-targets
      '((nil . (:level . 1))
        (nil . (:tag . "project"))))
(setq org-src-fontify-natively t) ; Fontify source blocks

;; Set Org files
(defvar org-files
  '("gtd.org" "work.org")
  "List of org-mode files for use with Emacs.")

;; Dynamically set directory where Org files are located
(when using-windows
  (let ((userprofile
         (replace-regexp-in-string "\\\\" "/" (getenv "USERPROFILE"))))

          '((todo tag-up)))))
        ("I" "Incomplete items" todo "STARTED"
         ((org-agenda-sorting-strategy
           '((todo tag-up)))))
        ("A" "Agenda context" tags-todo "agenda"
         ((org-agenda-sorting-strategy
           '((todo tag-up)))))
        ("P" "List of active projects" tags "project"
         ((org-agenda-sorting-strategy
           '((tags alpha-up)))))))

;; org-capture settings
(global-set-key "\C-cc" 'org-capture)
