ensure the new filters are initialized upon load

This commit is contained in:
ndwarshuis 2018-09-30 22:20:15 -04:00
parent 649e1a9451
commit 54f8b5330d
1 changed files with 3 additions and 0 deletions

View File

@ -881,6 +881,9 @@ In order to implement the =hasprop= filter the functions, =org-agenda-filter-mak
As it is, this allows any filter using =hasprop= to be applied and removed using the standard =org-agenda-filter-apply= function with the =org-agenda-hasprop-filter= variable (obviously these can all be extended to different filter types). Note this does not give a shiny indicator at the bottom on spaceline like the built-in filter does...oh well. As it is, this allows any filter using =hasprop= to be applied and removed using the standard =org-agenda-filter-apply= function with the =org-agenda-hasprop-filter= variable (obviously these can all be extended to different filter types). Note this does not give a shiny indicator at the bottom on spaceline like the built-in filter does...oh well.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
;; initialize new filters
(defvar org-agenda-hasprop-filter nil)
(defun nd/org-agenda-filter-make-matcher-prop (defun nd/org-agenda-filter-make-matcher-prop
(filter type &rest args) (filter type &rest args)
"Return matching matcher form for FILTER and TYPE where TYPE is not "Return matching matcher form for FILTER and TYPE where TYPE is not