From: "Gustav Wikström" <gustav.erik@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Problem: Customizing agenda-views with org-agenda-prefix-format
Date: Tue, 16 Aug 2011 13:15:58 +0200 [thread overview]
Message-ID: <CA+SyOP-KEwpF2wpY3nWkABqGTYDzMJ_80Y=WRV6+48tfvEPfyA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]
Hello!
I've tried to customize the output in agenda-views using
org-agenda-prefix-format but I didn't get it to work properly.
I created this agenda view to illustrate my problem:
(setq org-agenda-custom-commands
'(("w" "Deadlines"
;; inbox
((tags-todo "+DEADLINE<=\"<today>\""
((org-agenda-prefix-format " %-12c%?-12t% s")
(org-agenda-tags-todo-honor-ignore-options t)
(org-agenda-todo-ignore-deadlines nil)
))
(tags-todo "+DEADLINE<=\"<today>\""
((org-agenda-tags-todo-honor-ignore-options t)
(org-agenda-todo-ignore-deadlines nil)
))))))
The only thing that differs is (org-agenda-prefix-format "
%-12c%?-12t% s") which
is present in the first of the two. The output when showing this agenda is:
Headlines with TAGS match: +DEADLINE<="<today>"
Recurring TODO Sommarlöpning
=================================================================================
Headlines with TAGS match: +DEADLINE<="<today>"
Recurring: TODO Sommarlöpning
There are some differences corresponding to the agenda-prefix-format
(indentation and lack of ":") but all the formatting options have not been
applied. I can not see the deadline-information I should get from "% s".
(From org-agenda.org: "%s Scheduling/Deadline information, a short
string")
The following is the entry in my agenda-file:
** TODO Sommarlöpning
DEADLINE: <2011-08-14 Sun 16:00 .+2d>
:LOGBOOK:
- Refiled on [2011-08-15 Mon 15:45]
- State "CANCELED" from "TODO" [2011-08-13 Sat 19:05]
- State "DONE" from "TODO" [2011-08-10 Wed 19:42]
- State "TODO" from "" [2011-08-10 Wed 09:53]
:END:
:PROPERTIES:
:LAST_REPEAT: [2011-08-13 Sat 19:05]
:END:
Any guesses on what is wrong? Can anyone reproduce my problem or is it my
settings?
Regards Gustav
[-- Attachment #2: Type: text/html, Size: 5439 bytes --]
reply other threads:[~2011-08-16 11:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CA+SyOP-KEwpF2wpY3nWkABqGTYDzMJ_80Y=WRV6+48tfvEPfyA@mail.gmail.com' \
--to=gustav.erik@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).