This apparently deletes really old entries from the database.
#+BEGIN_SRC emacs-lisp
(unless (string-equal system-type "android")
(add-hook 'elfeed-new-entry-hook
(elfeed-make-tagger :before "6 months ago"
:remove 'unread)))
#+END_SRC
Save elfeed state properly when exiting Emacs.
#+BEGIN_SRC emacs-lisp
(unless (string-equal system-type "android")
(defun save-if-elfeed ()
"Save the elfeed DB if elfeed is running"
(if (get-buffer "*elfeed-search*")
(progn
(elfeed-db-save)
(message "Elfeed DB saved"))))
(add-hook 'kill-emacs-hook 'save-if-elfeed))
#+END_SRC
** =git-gutter=
** =git-gutter=
Shows, or at least purports to show, =git diff= in the left margin if the file is being tracked by =git=.
Shows, or at least purports to show, =git diff= in the left margin if the file is being tracked by =git=.
@ -864,7 +791,7 @@ Use the superior package for viewing PDFs on the superior operating system, and
** =recentf=
** =recentf=
Gives me a dialog with recently opened files. Package management and =elfeed= stuff have to be manually excluded for obvious reasons. Surely I don’t have to call =add-to-list= separately every time, but I haven’t found a more sensible way of doing it.
Gives me a dialog with recently opened files. Package management stuff has to be manually excluded for obvious reasons. Surely I don’t have to call =add-to-list= separately every time, but I haven’t found a more sensible way of doing it.
#+BEGIN_SRC emacs-lisp
#+BEGIN_SRC emacs-lisp
(recentf-mode 1)
(recentf-mode 1)
@ -875,8 +802,6 @@ Gives me a dialog with recently opened files. Package management and =elfeed= st