Syncing and viewing RSS via the web instead for now

master
trémeur 7 months ago
parent 2d7b1bfe55
commit 3ae8ba63cb

@ -295,79 +295,6 @@ Much nicer-looking modeline, and still my favourite over newer, trendier options
(setq doom-modeline-buffer-encoding nil)))
#+END_SRC
** =elfeed=
Obviously I use an =org= file to manage my feeds.
#+BEGIN_SRC emacs-lisp
(unless (string-equal system-type "android")
(use-package elfeed-org
:config
(elfeed-org)
(setq rmh-elfeed-org-files (list "~/Documents/drive/org/feeds.org"))))
#+END_SRC
Standard =elfeed= settings:
#+BEGIN_SRC emacs-lisp
(unless (string-equal system-type "android")
(defun elfeed-load-db-and-open ()
"Load and open the elfeed DB"
(interactive)
(elfeed-db-load)
(elfeed)
(elfeed-search-update--force)
(elfeed-update))
(global-set-key (kbd "C-x w") 'elfeed-load-db-and-open)
(defalias 'elfeed-toggle-star
(elfeed-expose #'elfeed-search-toggle-all 'star))
(eval-after-load 'elfeed-search
'(define-key elfeed-search-mode-map (kbd "m") 'elfeed-toggle-star))
(defun elfeed-save-db-and-bury ()
"Save and close the elfeed DB"
(interactive)
(elfeed-db-save)
(quit-window))
(use-package elfeed
:bind
(:map elfeed-search-mode-map
("q" . elfeed-save-db-and-bury))
:custom
(elfeed-sort-order 'ascending)
(elfeed-db-directory "~/Documents/drive/org/elfeed")))
#+END_SRC
I am a huge supporter of big-endian date formats.
#+BEGIN_SRC emacs-lisp
(unless (string-equal system-type "android")
(defun elfeed-search-format-date (date)
"Set elfeed to display big-endian dates"
(format-time-string "%Y-%m-%d %H:%M" (seconds-to-time date))))
#+END_SRC
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=
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=
Gives me a dialog with recently opened files. Package management and =elfeed= stuff have to be manually excluded for obvious reasons. Surely I dont have to call =add-to-list= separately every time, but I havent 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 dont have to call =add-to-list= separately every time, but I havent found a more sensible way of doing it.
#+BEGIN_SRC emacs-lisp
(recentf-mode 1)
@ -875,8 +802,6 @@ Gives me a dialog with recently opened files. Package management and =elfeed= st
(expand-file-name "~/.emacs.d/elpa/*"))
(add-to-list 'recentf-exclude
(expand-file-name "~/.emacs.d/bookmarks"))
(add-to-list 'recentf-exclude
(expand-file-name "~/Documents/drive/org/elfeed/*"))
#+END_SRC
** =tex=

Loading…
Cancel
Save