From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Basic Q: Display specific property in custom agenda view
Date: Thu, 26 Sep 2019 00:06:20 -0500 [thread overview]
Message-ID: <CAC=HedD5mauRFDk6SWH2xRchMFm222JAetSbvHr8kPs1k4-T7A@mail.gmail.com> (raw)
In-Reply-To: <CAC=HedDoXF2aH0qQ95YqkCyK88a9B1vpdF1xu+anhCJXTrqXMg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]
Got it! Now, all I need to do is add the cool ":" functionality
where a ":" is appended to the result if there is a result :-)
Using %-12:(njn-get-proj-property)
doesn't work like %-12:c :-(
;; Return PROJ property or category property
(defun njn-get-proj-property()
(or (org-entry-get (point) "PROJ" t)
(org-get-category)))
(setq org-agenda-custom-commands
'(
("A" agenda "" (
(org-agenda-span 'day)
(org-agenda-prefix-format " %-12(njn-get-proj-property) %?-12t%
s")
(org-agenda-include-inactive-timestamps nil)))
<snip>
On Wed, Sep 25, 2019 at 11:16 PM Nathan Neff <nathan.neff@gmail.com> wrote:
>
> On Wed, Sep 25, 2019 at 7:12 PM Nathan Neff <nathan.neff@gmail.com> wrote:
>
>> Hello all,
>>
>> My apologies for not finding this in the docs, but I'm trying to define a
>> simple custom agenda view that is exactly the same as the default day
>> week view,
>> except the only difference is displaying a property called FOO instead of
>> the CATEGORY
>> property.
>>
>>
> I found an example here:
> https://lists.gnu.org/archive/html/emacs-orgmode/2016-04/msg00402.html
>
> Thanks,
> --Nate
>
>
>> I think it's simply a matter of setting org-agenda-prefix-format to
>> something
>> other than the default: " %i %-12:c%?-12t% s" but I can't find the exact
>> function to call
>> in place of %i. I would think there's something like
>> %(get-property-of-heading(FOO))
>>
>> Thanks for any advice
>> --Nate
>>
>
[-- Attachment #2: Type: text/html, Size: 3192 bytes --]
next prev parent reply other threads:[~2019-09-26 5:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 0:12 Basic Q: Display specific property in custom agenda view Nathan Neff
2019-09-26 4:16 ` Nathan Neff
2019-09-26 5:06 ` Nathan Neff [this message]
2019-09-26 5:27 ` Fraga, Eric
2019-09-27 8:30 ` Nathan Neff
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='CAC=HedD5mauRFDk6SWH2xRchMFm222JAetSbvHr8kPs1k4-T7A@mail.gmail.com' \
--to=nathan.neff@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).