Comments (4)
If you want to inline the value to which an expression evaluates, you can do that by backquoting the list and splicing the value, like any other Lisp list. The variable org-super-agenda-groups
is a list, and its elements are not evaluated by org-super-agenda.
from org-super-agenda.
Hi, I've tried something as simple as
(:name "Due Soon"
:deadline `(before ,(format "%s" "2022-12-17")))
And it doesn't work. None of the categories get captured by "Due Soon"...
Comparing that to just
(:name "Due Soon" :deadline (before "2022-12-17"))
Which does capture the deadline items before 2022-12-17
from org-super-agenda.
Saw my problem...it's in the way I initialized org-agenda-custom commands...things work with
(setq org-agenda-custom-commands
`(("a" "agenda"
...
(:name "Due Soon"
:deadline (before ,(format "%s" "2022-12-17")))
from org-super-agenda.
FYI, there's no need to use backquoting and splicing with the expression (format "%s" "2022-12-17")
, because it's the same as just inlining the string "2022-12-17"
directly. The case in which you might want to backquote and splice would be to, e.g. use org-read-date
for a relative date.
But when doing that, you need to be aware of when the evaluation happens; e.g. if you set the variable org-super-agenda-groups
globally on the 17th, and kept using that Emacs session into the next day, the date in the list would not automatically update to the 18th.
Also, for that specific use case, see #225 and #149.
from org-super-agenda.
Related Issues (20)
- `:discard` breaks org-agenda-redo when processing the time grid HOT 1
- Invalid org-super-agenda-groups-selector when using :take HOT 3
- :auto-parent group headers have leading spaces corresponding to outline level HOT 1
- Can you use auto-catgeory half way in your groups? HOT 2
- Explicit OR? HOT 10
- Allow (:priority nil) to match entries without explicit priorities HOT 2
- Select items logged yesterday/in the last 7 days? HOT 1
- :discard will discard all lines in agenda that render exactly the same if any *one* of the corresponding headings match HOT 1
- question: week-long view? HOT 1
- Customize group name ? HOT 7
- Group item by last modified state ? HOT 3
- Wrong parent headers HOT 2
- Cannot find file org-super-agenda-autoloads? HOT 1
- cond: Invalid org-super-agenda-groups selector: (:discard (:scheduled future)) HOT 7
- Showing the section name for an empty section? HOT 5
- Separating Deadline and Scheduled entries of the same task HOT 3
- Placing cursor on top of group heading changes the keymap and replaces the org-agenda buffer with a calendar when pressed `j ` both on Spacemacs and Doom Emacs HOT 3
- There is error -remove: Symbol’s function definition is void: s-blank-str? HOT 1
- Add explicit :or operator for use within :and operator? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-super-agenda.