"Martin Beck" <elwood...@web.de> writes:

> in a block agenda view, I also want to incorporate the time grid to see the 
> appointments of a day.
>  
> I tried with this code:
>  
> (agenda "" ((org-agenda-overriding-header "Calendar") (org-agenda-span (quote 
> day)) (org-agenda-entry-types (quote (:timestamp)))
> (org-agenda-time-grid (quote ("t")))))
>  

The org-agenda-time-grid setting looks wrong: maybe try

(org-agenda-time-grid '((daily today nil)   ;;; replaced require-timed with nil
                       #("----------------" 0 16
                          (org-heading t))
                           (800 1000 1200 1400 1600 1800 2000)))

but I'm not sure where the code you show above lives. I just tried setting
org-agenda-custom-commands like this:

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands
      '(
        ("A" "normal agenda but always time grid" agenda ""
         ((org-agenda-time-grid '((daily today nil)
                                 #("----------------" 0 16
                                   (org-heading t))
                                 (800 1000 1200 1400 1600 1800 2000)))))
))
--8<---------------cut here---------------end--------------->8---

and that seems to work.

Nick


Reply via email to