emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Show timegrid even if empty?


From: Nick Dokos
Subject: Re: [O] Show timegrid even if empty?
Date: Mon, 13 Jan 2014 12:00:39 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

"Martin Beck" <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]