Docs: Add examples and update readme

This commit is contained in:
Adam Porter 2018-07-10 08:38:17 -05:00
parent ed55f7f15f
commit 056c93bcd6
2 changed files with 27 additions and 5 deletions

View file

@ -17,19 +17,19 @@ Here's an example of generating a kind of agenda view for today (note that the g
Here are some other examples:
#+BEGIN_SRC elisp
;; Show an agenda-like view of items in all agenda files with TODO and SOMEDAY keywords which are
;; Show an agenda-like view of items in "~/org/main.org" with TODO and SOMEDAY keywords which are
;; tagged "computer" or "Emacs" and in the category "main":
(org-agenda-ng org-agenda-files
(org-agenda-ng "~/org/main.org"
(and (todo "TODO" "SOMEDAY")
(tags "computer" "Emacs")
(category "main")))
;; Show an agenda-like view of all habits:
(org-agenda-ng org-agenda-files
;; Show an agenda-like view of all habits in all agenda files:
(org-agenda-ng
(habit))
;; Show an agenda-like view similar to a "traditional" Org agenda:
(org-agenda-ng "~/org/main.org"
(org-agenda-ng
(or (habit)
(date = today)
(deadline <=)
@ -38,6 +38,8 @@ Here are some other examples:
(closed = today))))
#+END_SRC
More examples are available in [[examples.org]].
** org-ql
Another way to look at it is like a "query language" for Org buffers. For example: