From: Matt Lundin <mdl@imapmail.org>
To: Norbert Zeh <nzeh@cs.dal.ca>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Customizing agenda line format
Date: Mon, 13 Sep 2010 19:16:12 -0400 [thread overview]
Message-ID: <87eicxp743.fsf@archeee.localdomain> (raw)
In-Reply-To: <20100913211530.GY4640@cs.dal.ca> (Norbert Zeh's message of "Mon, 13 Sep 2010 18:15:30 -0300")
Norbert Zeh <nzeh@cs.dal.ca> writes:
> Matt Lundin [2010.09.13 1512 -0400]:
>> Norbert Zeh <nzeh@cs.dal.ca> writes:
>>
>> > Is there a way to freely customize the format of lines in the weekly
>> > agenda or todo list.
>> ...
>> > I have a bunch of todo items that have a special todo state, say SPECIAL.
>> > I don't want those included in my weekly agenda, but rather have a block
>> > agenda where one of the blocks lists all todo items with todo state
>> > SPECIAL. Clearly, since this block includes only items that are
>> > SPECIAL, listing this tag at the beginning of each entry's line is
>> > redundant information. So I'd like to remove the TODO state. For
>> > example, the org file entry
>> >
>> > * SPECIAL Call mom
>> >
>> > should appear simply as
>> >
>> > Call mom
>> >
>> > in that block of my agenda. Can this be done?
>>
>> Check out the variable org-agenda-todo-keyword-format.
>>
>> E.g.,
>>
>> --8<---------------cut here---------------start------------->8---
>> (setq org-agenda-custom-commands
>> '(("x" "Special" todo "SPECIAL"
>> ((org-agenda-todo-keyword-format "")))))
>> --8<---------------cut here---------------end--------------->8---
>>
>> The variable org-agenda-prefix-format might also be of interest.
>
> Well, I tried setting org-agenda-todo-keyword-format to "%0s", which
> didn't work, but I didn't think about the above. So I tried this now.
> It does remove the todo keyword, but it does only that. In particular,
> there is now a space at the beginning of each line, which I assume is
> simply the space in the headline that succeeds the todo keyword. Any
> way of getting rid of that? Thanks for the pointer so far.
>
The information at the beginning of the line is controlled by
org-agenda-prefix-format. What is the value of org-agenda-prefix-format
on your machine?
What happens if you set org-agenda-prefix-format to "" in the command
above?
Best,
Matt
next prev parent reply other threads:[~2010-09-13 23:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 13:48 Customizing agenda line format Norbert Zeh
2010-09-13 19:12 ` Matt Lundin
2010-09-13 21:15 ` Norbert Zeh
2010-09-13 23:16 ` Matt Lundin [this message]
2010-09-14 17:21 ` Norbert Zeh
2010-09-16 4:52 ` Matt Lundin
2010-09-16 8:21 ` Carsten Dominik
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=87eicxp743.fsf@archeee.localdomain \
--to=mdl@imapmail.org \
--cc=emacs-orgmode@gnu.org \
--cc=nzeh@cs.dal.ca \
/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).