emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: david@adboyd.com (J. David Boyd)
To: emacs-orgmode@gnu.org
Subject: Re: Agenda view > Day separator
Date: Tue, 18 May 2010 08:06:41 -0400	[thread overview]
Message-ID: <e8ry6fho1m6.fsf@FLM000025LVE9F.catmktg.com> (raw)
In-Reply-To: hssa9c$5cp$1@dough.gmane.org


I think this is using the same formatting as strftime.  So, 'man
strftime' will show you all the options.

The short day name is '%a', and the full day name is '%A'.

Dave



Markus Heller <hellerm2@gmail.com> writes:

> 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<carsten.dominik@gmail.com>  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
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-05-18 12:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13  8:41 Agenda view > Day separator Sébastien Vauban
2010-05-13 15:06 ` Eric S Fraga
2010-05-13 18:27 ` Carsten Dominik
2010-05-13 19:34   ` Eric S Fraga
2010-05-17 11:23     ` Sébastien Vauban
2010-05-17 20:51       ` Markus Heller
2010-05-17 21:02         ` Nick Dokos
2010-05-17 21:14           ` Markus Heller
2010-05-18  7:39             ` Sébastien Vauban
2010-05-18  8:33               ` Štěpán Němec
2010-05-18 11:17                 ` Sébastien Vauban
2010-05-18 12:30                   ` Štěpán Němec
2010-05-18 12:06         ` J. David Boyd [this message]
2010-05-18  8:02 ` Agenda view > Face for deadlines Sébastien Vauban
2010-05-19 21:53   ` Agenda view > Face for deadlines > PATCH Sébastien Vauban
2010-05-21  7:43     ` Sébastien Vauban
2010-05-21 14:37       ` Carsten Dominik
2010-07-12 21:02         ` Sébastien Vauban
2010-08-12  8:34           ` Sébastien Vauban
2010-08-12 14:26             ` Bastien
2010-08-13 10:13               ` Sébastien Vauban
2010-08-16 19:51                 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e8ry6fho1m6.fsf@FLM000025LVE9F.catmktg.com \
    --to=david@adboyd.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).