From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Custom agenda -- running functions, not just setting vars Date: Wed, 09 Nov 2011 22:00:39 +0100 Message-ID: <807h39j9jc.fsf@somewhere.org> References: <87y5vpebfz.fsf@norang.ca> <80zkg5wkbx.fsf@somewhere.org> <80boslja1i.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org >> Bernt Hansen wrote: >>> Tommy Kelly writes: >>> (setq org-agenda-custom-commands >>> (quote (( "x" "Test Agenda" agenda "" >>> ((org-agenda-start-with-follow-mode t) >>> (org-agenda-span 'day) >>> (org-agenda-start-with-log-mode t)))))) >>> >>> but it doesn't handle the grid - I have that on by default by setting >>> >>> (setq org-agenda-time-grid (quote ((daily today remove-match) >>> #("----------------" 0 16 (org-heading t)) >>> (830 1000 1200 1300 1500 1700)))) >>> >>> which you can probably add to the above agenda definition but I didn't >>> bother. If there are no items to display on the agenda there is a bug >>> where the grid is not shown but otherwise I think this works. >> >> I don't think that's a bug: this seems to be handled -- see parameter >> `require-timed' in the doc: > > The problem is well that, if you force the timegrid even when there is no > timed event to show, you'll always have it. > > It's nice for the daily agenda view, where one could want it, with or without > timed event foreseen. > > It's much less nice for a block view where you have a couple of sub-agendas > (one with appointments only, one with deadlines only, one with scheduled > entries only: you get the timegrid displayed 3 times). ... then one need to locally set org-agenda-time-grid to nil in the definition of the custom agenda view. Best regards, Seb -- Sebastien Vauban