From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: Re: Agenda view > Day separator Date: Mon, 17 May 2010 13:51:56 -0700 Message-ID: References: <87vdasfb1w.fsf@mundaneum.com> <87ocgjzjc7.wl%ucecesf@ucl.ac.uk> <878w7ipy9c.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=56226 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE7IW-0000Pr-3O for emacs-orgmode@gnu.org; Mon, 17 May 2010 16:52:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE7IL-0005j1-Gz for emacs-orgmode@gnu.org; Mon, 17 May 2010 16:52:23 -0400 Received: from lo.gmane.org ([80.91.229.12]:34277) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE7IL-0005ie-9X for emacs-orgmode@gnu.org; Mon, 17 May 2010 16:52:13 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OE7IH-00038u-Am for emacs-orgmode@gnu.org; Mon, 17 May 2010 22:52:09 +0200 Received: from mail.cdrd.ca ([142.103.191.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 May 2010 22:52:09 +0200 Received: from hellerm2 by mail.cdrd.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 May 2010 22:52:09 +0200 In-Reply-To: <878w7ipy9c.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 5/17/2010 4:23 AM, Sébastien Vauban wrote: > Hi Eric and Carsten, > > Eric S Fraga wrote: >> On Thu, 13 May 2010 20:27:27 +0200, Carsten Dominik wrote: >>> >>> Take a look at the variable org-agenda-format-date. >>> Or you can write your own function to do something fancier, maybe based on >>> `org-agenda-format-date-aligned'. >> >> Thanks Carsten. This did the job. I modified your function to add a 120 long >> blank string at the end of the date [...] and I have a clear date separator! >> Underline would work as well, of course. > > Another version, I guess, from what you wrote. No length hard-coded, except > for the 10 characters of the ISO date and 1 space after. > > --8<---------------cut here---------------start------------->8--- > (setq org-agenda-format-date > (concat "%Y-%m-%d " > (make-string (- (window-width) 11) (string-to-char "_")))) > --8<---------------cut here---------------end--------------->8--- > > The agenda view is much, much clearer now... > That's a nice piece of lisp, thanks for sharing. Just curious, how can I get the day of the week in there as a string? Thanks Markus