Compare commits

..

3 Commits

Author SHA1 Message Date
83421c072a
Remove trailing whitespace after HTML rendering a file
Those whitespaces are neither necessary nor helpful.
2022-02-06 20:57:36 +01:00
0a76969a95
Automatically expire elements in Gnus groups via gnus handler
So I don't have to do it manually.

Not sure whether this works, though.
2022-02-06 20:56:46 +01:00
940c4b04a8
Remove explicit initialization of gnus-demon
This is automatically done by `gnus-demon-add-handler`.
2022-02-06 20:56:19 +01:00
2 changed files with 4 additions and 2 deletions

View File

@ -1871,7 +1871,8 @@
;; Automatically scan for new news
(gnus-demon-add-handler 'db/gnus-demon-scan-news-on-level-2 5 5)
(add-hook 'gnus-started-hook #'gnus-demon-init)
;; Automatically expire groups on idle
(gnus-demon-add-handler 'gnus-group-expire-all-groups 10 5)
;; Visit group under point and immediately close it; this updates
;; gnus registry as a side-effect

View File

@ -460,7 +460,8 @@ Does not replace CRLF with CRCRLF, and so on."
(interactive "f")
(unless (file-readable-p file)
(user-error "Cannot read file: %s" file))
(shr-render-buffer (find-file-noselect file)))
(shr-render-buffer (find-file-noselect file))
(delete-trailing-whitespace))
;; Base45 Decoding