lou <[email protected]> writes: >> You can use %c to insert category in agenda prefix. Calling >> org-get-category directly is a mistake - the %(...) functions >> are ran in agenda buffer, not in Org buffer, which >> `org-get-category' expects. > > I used `org-get-category` directly in the example as a minimal > case. My actual use case, that I think worked fine before, is to > have a function that returns a dynamic prefix based on the entries > category (but not necessarily the category itself). Is something > like this supported at all?
You can use `org-agenda-get-category' from inside agenda buffer. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
