emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Several %(expression) in org-agenda-prefix-format


From: laurent . jucquois
Subject: Re: [O] Several %(expression) in org-agenda-prefix-format
Date: Fri, 15 Apr 2016 17:56:29 +0200
User-agent: Posteo Webmail

Hi Nick,

That is indeed what I needed !

Here is what I've come up with:

(format "%-12s %-12s %-8s" (or (org-entry-get (point) "Case" t) "--") (or (org-entry-get (point) "CaseNum" t) "--") (or (org-entry-get (point) "FiscalYear" t) "--"))

It does exactly what I wanted, so thanks for the pointer!

Laurent

Am 15.04.2016 16:44 schrieb Nick Dokos:
address@hidden writes:

Hi Christophe,

Thanks for the pointer!

I had already tried this solution but I wasn't entirely satisfied
because of alignment reasons.

Not all my properties have the same length, so my agenda now looks
like this:

DUPOND 12/RG/569 (10) : My task
DURAND 16/1689/A (05; 10-12; 14) : My task

So it's better than not knowing to which case my todos relate but it
isn't ideal for readability.

Do you know if, like org-agenda-prefix-format, I could align the
result of concat or define the number of character the first string
can occupy?


Can't you use something like:

   (format "%-40s" (concat ...))

?

--
Nick



reply via email to

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