From: Andrea Zagli Date: Sun, 10 Sep 2017 08:08:28 +0000 (+0200) Subject: Added function to filter feed's entries. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=1ab59ce11c88da0aa0e2ca40e8c3f43cbc98303f;p=emacs%2Felfeed-speedbar Added function to filter feed's entries. --- 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) )