emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote-menu 52ebd5eae4 04/15: fix custom filter example


From: ELPA Syncer
Subject: [elpa] externals/denote-menu 52ebd5eae4 04/15: fix custom filter example
Date: Thu, 9 Mar 2023 11:00:06 -0500 (EST)

branch: externals/denote-menu
commit 52ebd5eae4b396192e8d994c7d7cef1ade5a52c6
Author: Mohamed Suliman <sulimanm@tcd.ie>
Commit: Mohamed Suliman <sulimanm@tcd.ie>

    fix custom filter example
---
 README.org | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.org b/README.org
index a6734e478b..0f7eb6015b 100644
--- a/README.org
+++ b/README.org
@@ -92,10 +92,10 @@ There are two ways to define your own filters:
    desired denote files, then your filter function would look something like 
the following:
    #+begin_src emacs-lisp
 (defun my/denote-menu-filter-custom ()
-  (let ((my-matching-denote-paths 
(do-some-filtering-of-tabulated-list-entries-blah-blah)))
-    (setq tabulated-list-entries (lambda () (mapcar 
#'denote-menu--path-to-entry my-matching-denote-files)))
+  (interactive)
+  (let ((my-matching-denote-paths 
'("/home/namilus/zettelkasten/20220719T135304--this-is-my-first-note__meta.org")))
+    (setq tabulated-list-entries (lambda () (mapcar 
#'denote-menu--path-to-entry my-matching-denote-paths)))
     (revert-buffer)))
-
    #+end_src
 ** Clearing filters
  To clear the filters and revert back to the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]