From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Show timegrid even if empty? Date: Mon, 13 Jan 2014 12:00:39 -0500 Message-ID: <87sisrn7ew.fsf@alphaville.bos.redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2ksp-0006EB-PM for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 12:01:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2ksi-00027V-Fa for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 12:01:03 -0500 Received: from plane.gmane.org ([80.91.229.3]:49375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2ksi-00027O-9p for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 12:00:56 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2kse-0006xp-60 for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 18:00:52 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jan 2014 18:00:52 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jan 2014 18:00:52 +0100 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Martin Beck" 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