You can set the prefix for different kinds of agenda view separately:
org-agenda-prefix-format is a variable defined in `org-agenda.el'.
Its value is
((agenda . " %i %-12:c%?-12t% s")
(timeline . " % s")
(todo . " %i %-12:c")
(tags . " %i %-12:c")
(search . " %i %-12:c"))
Documentation:
Format specifications for the prefix of items in the agenda views.
An alist with five entries, each for the different agenda types. The
keys of the sublists are agenda',
timeline', todo',
search' and `tags'.
The values are format strings.
But you are not limited to setq
'ing this. Custom agenda views let you set variables on a per-block basis. For example:
(setq org-agenda-custom-commands
'(("c" . "My Custom Agendas")
("co" "Agenda Overview"
((agenda ""
((org-agenda-overriding-header "Today, Tomorrow (and Yesterday)")
(org-agenda-files (nconc (org-agenda-files) '("~/org/sunrise.org")))
(org-agenda-start-day "-1d")
(org-agenda-span 3)
(org-agenda-start-on-weekday nil)
(org-agenda-show-all-dates t)
(org-agenda-use-time-grid t)))
(tags-todo "projectx"
((org-agenda-overriding-header "\nProject Tasks")
(org-agenda-prefix-format "%(my-project-agenda-prefix)"))))
((org-agenda-compact-blocks nil)
(org-agenda-block-separator nil)
(org-agenda-show-all-dates nil)
(org-agenda-repeating-timestamp-show-all t)
(org-agenda-start-with-clock-report-mode nil)
(org-agenda-use-time-grid nil)
(org-agenda-prefix-format ((agenda . " %i %-12:c%?-12t% s")
(timeline . " % s")
(todo . " %i %-12:c")
(tags . " %i %-12:c")
(search . " %i %-12:c")))) ;; settings for both above blocks
nil) ;; exports blocks to this file with C-c a e
))
The org-agenda-prefix-format
at the bottom overrides the global setting for both blocks in this custom agenda view, and the org-agenda-prefix-format
in the top block overrides that for just this block.
You can switch on or off the time grid with org-agenda-use-time-grid
.