From: Mark Wooding Date: Fri, 15 Apr 2016 13:12:19 +0000 (+0100) Subject: dot/gnus.el: Set a null primary source if no NNTP server is available. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/50a38814999fe981d4c2bd318b9375e42d599d87 dot/gnus.el: Set a null primary source if no NNTP server is available. --- diff --git a/dot/gnus.el b/dot/gnus.el index 46b0a04..ebf83f2 100644 --- a/dot/gnus.el +++ b/dot/gnus.el @@ -96,7 +96,11 @@ ;;; Local configuration. ;; Fetching news from the local news server seems sensible. -(setq gnus-select-method `(nntp ,(mdw-config 'nntp-server))) +(setq gnus-select-method + (let ((server (mdw-config 'nntp-server))) + (if server + `(nntp ,server) + '(nnnil "")))) ;; Now load a local configuration file. (load "~/.gnus-local.el")