emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anupam Sengupta <anupamsg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format?
Date: Thu, 28 Apr 2011 20:42:54 +0530	[thread overview]
Message-ID: <m2y62u1kax.fsf@gmail.com> (raw)

Hello,

In my custom agenda block, I wanted to distinguish between SCHEDULED and
DEADLINE items using a small character flag.  The docstring for
`org-agenda-prefix-format' mentions %s as the one to use for the
scheduled/deadline string (as is used in the default agenda) - however,
this string does not seem to be working for me (orgmode 7.5).

As an example of a custom agenda block:

(tags-todo "+TODO=\"TODO\"+SCHEDULED>=\"<today>\"+SCHEDULED<\"<tomorrow>\"|+TODO=\"TODO\"+DEADLINE>=\"<today>\"+DEADLINE<\"<tomorrow>\"|+TODO=\"TODO\"+TIMESTAMP>=\"<today>\"+TIMESTAMP<\"<tomorrow>\""
              ((org-agenda-overriding-header "\nToday's Action Items\n====================")
               (org-agenda-prefix-format " [ ] %12:c%?-12t % s")))

Note the % s in the `org-agenda-prefix-format' setting.  All other
settings are showing up fine, but the schedule information is missing in
the display.

As an aside, %s is not exactly what I need, as I was looking for a way
to display a single character flag (S or D for scheduled or deadline),
but this is also fine.

Regards,
-- 
Anupam

             reply	other threads:[~2011-04-28 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-28 15:12 Anupam Sengupta [this message]
2011-05-06 13:00 ` Any way to identify a DEADLINE or SCHEDULED item via org-agenda-prefix-format? Matt Lundin

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=m2y62u1kax.fsf@gmail.com \
    --to=anupamsg@gmail.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).