             (tags priority-down category-keep)
             (search category-keep)))
     (setq org-deadline-warning-days 14)
-    (setq org-log-states-order-reversed nil)))
+    (setq org-log-states-order-reversed nil)
+
+    ;; specialized agenda for reporting
+
+    ;; (add-to-list 'org-agenda-custom-commands
+    ;;              '("W" "Weekly review"
+    ;;                agenda ""
+    ;;                ((org-agenda-span 8)
+    ;;                 (org-agenda-start-day "-8d")
+    ;;                 (org-agenda-start-on-weekday 2)
+    ;;                 (org-agenda-start-with-log-mode t)
+    ;;                 (org-agenda-skip-function
+    ;;                  '(org-agenda-skip-entry-if 'nottodo 'done)))))
+    ))
 
 (use-package adoc-mode
   :init

      (setq org-bullets-bullet-list '("#" "##" "###" "####")))

    ;; capture
    (setq org-default-notes-file my-default-notes-file)
    (setq org-capture-templates
          '(("t" "Todo" entry (file+headline org-default-notes-file "Tasks")
             "* TODO %?\n:PROPERTIES:\n:Created: %U\n:END:\n  %i\n  %a"
             :created t)))


    (setq org-refile-use-outline-path t)

    ;; agenda
    (require 'org-agenda)

    ;; this is the default agenda configuration for viewing the agenda
    (setq org-agenda-files (list org-directory))
    (setq org-agenda-span 'fortnight)
    ;; don't show tasks as scheduled if they are already shown as deadline
    (setq org-agenda-skip-scheduled-if-deadline-is-shown t)
    ;; show log mode by default
    ;; (setq org-agenda-start-with-log-mode t)
    ;; show agenda in the current window and don't modify my existing window setup
    (setq org-agenda-window-setup 'current-window)
    ;; don't show tasks that are scheduled or have deadlines in the
    ;; normal todo list
    (setq org-agenda-todo-ignore-deadlines 'all)
    (setq org-agenda-todo-ignore-scheduled 'all)
    ;;sort tasks in order of when they are due and then by priority
    (setq org-agenda-sorting-strategy
          '((agenda deadline-up priority-down)
