Docs: Add example
This commit is contained in:
parent
bd56652c66
commit
43545482a4
1 changed files with 9 additions and 0 deletions
|
|
@ -52,6 +52,15 @@ More examples are available in [[examples.org]].
|
||||||
(and (property "genre" "classical")
|
(and (property "genre" "classical")
|
||||||
(property "composer" "Chopin")
|
(property "composer" "Chopin")
|
||||||
(not (property "key"))))
|
(not (property "key"))))
|
||||||
|
|
||||||
|
;; Define a custom Org Agenda command which inserts an `org-ql-block'
|
||||||
|
;; block before the regular agenda:
|
||||||
|
(setq org-agenda-custom-commands
|
||||||
|
'(("ces" "Custom: Agenda and Emacs SOMEDAY [#A] items"
|
||||||
|
((org-ql-block '(and (todo "SOMEDAY")
|
||||||
|
(tags "Emacs")
|
||||||
|
(priority "A")))
|
||||||
|
(agenda)))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Usage
|
* Usage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue