If you have GNU Emacs Gnus check RSS feeds, when you have many feeds defined, Gnus startup can take a considerable amount of time, as it redownloads each RSS feed. This can be quite problematic, especially when you are on a slow connection. Also sometimes you need to just check your email quickly without downloading RSS feeds.
To accomplish this:
| $ cp ~/.newsrc ~/.newsrc.mail $ cp ~/.newsrc.eld ~/.newsrc.eld.mail |
| $ cp ~/.newsrc ~/.newsrc.mail-rss $ cp ~/.newsrc.eld ~/.newsrc.eld.mail-rss |
| $ cp ~/.newsrc ~/.newsrc.rss $ cp ~/.newsrc.eld ~/.newsrc.eld.rss |
(defun shiroikuma/gnus-mail-rss () "Use GNUS to read email and RSS streams." (interactive) (copy-file "~/.newsrc.mail-rss" "~/.newsrc" 't) (copy-file "~/.newsrc.eld.mail-rss" "~/.newsrc.eld" 't)) (defun shiroikuma/gnus-mail () "Use GNUS to read email only." (interactive) (copy-file "~/.newsrc.mail" "~/.newsrc" 't) (copy-file "~/.newsrc.eld.mail" "~/.newsrc.eld" 't)) (defun shiroikuma/gnus-rss () "Use GNUS to read RSS streams only." (interactive) (copy-file "~/.newsrc.rss" "~/.newsrc" 't) (copy-file "~/.newsrc.eld.rss" "~/.newsrc.eld" 't))
Now when you want to just check your email, run the following one time before starting Gnus:
| M-x shiroikuma/gnus-mail |
When you want to only check RSS feeds:
| M-x shiroikuma/gnus-rss |
When you want to check both:
| M-x shiroikuma/gnus-mail-rss |