Giter Site home page Giter Site logo

Comments (4)

alphapapa avatar alphapapa commented on June 21, 2024

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.

purplefishies avatar purplefishies commented on June 21, 2024

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.

purplefishies avatar purplefishies commented on June 21, 2024

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.

alphapapa avatar alphapapa commented on June 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.