I had unbalanced parenthesis in Feb. and gave up. I was finally able to find the right
place to put the options for all the commands (see org-agenda-buffer-name) below.
I create variables and used functions to modularize my code - otherwise the parenthesis
become unbearable IMHO.
(setq org-agenda-custom-commands '())
(defun njn-define-block-agenda()
(setq njn-agenda '(("h" "Agenda and Projects (Home)"
((agenda )
(tags "-projectA-projectB-projectC/next\|started" ((org-agenda-todo-ignore-with-date nil)))
(tags "projectA-inactive/-cancelled-done"
((org-agenda-prefix-format " %?-12t% s")
(org-agenda-sorting-strategy (quote (priority-down)))))
(tags "projectA-inactive/-cancelled-done"
((org-agenda-prefix-format " %-16(njn-get-proj-property) %?-12t% s")
(org-tags-exclude-from-inheritance (remove "projectA" org-tags-exclude-from-inheritance))
(org-agenda-group-by-property "PROJ"))))
((org-agenda-buffer-name "Home")))))
(setq org-agenda-custom-commands (append njn-agenda org-agenda-custom-commands)))
(njn-define-block-agenda)
I realize this is opening a can of worms -- does anyone have recommendations for formatting
Lisp code? The above code is legible for me *right now* but in about 3 months the code will once
again be a paren-fest.