From 1ab59ce11c88da0aa0e2ca40e8c3f43cbc98303f Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sun, 10 Sep 2017 10:08:28 +0200 Subject: [PATCH] Added function to filter feed's entries. --- elfeed-search-speedbar.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/elfeed-search-speedbar.el b/elfeed-search-speedbar.el index d8873c6..a141e2c 100644 --- a/elfeed-search-speedbar.el +++ b/elfeed-search-speedbar.el @@ -66,6 +66,10 @@ 'elfeed~speedbar-feed feed-title))) +(defun elfeed~speedbar-feed (&optional text token ident) + "Filter news by TOKEN. TEXT and INDENT are not used." + (speedbar-with-attached-buffer (elfeed-search-set-filter (concat elfeed-search-filter " " token)))) + ;;;###autoload (defun elfeed-search-speedbar-buttons (buffer) "Create buttons for any elfeed BUFFER." @@ -73,9 +77,6 @@ (erase-buffer) (insert (propertize "* elfeed\n\n" 'face 'italic)) - (insert (propertize " Bookmarks\n" 'face 'italic)) - ;;;(mu4e~speedbar-render-bookmark-list) - (insert "\n") (insert (propertize " Feeds\n" 'face 'italic)) (elfeed~speedbar-render-feeds-list) ) -- 2.49.0