       mail-sources '((file))
       mail-source-delete-incoming t
       nntp-nov-is-evil t
+      nntp-connection-timeout nil
       gnus-asynchronous t
       gnus-save-killed-list nil
       gnus-save-newsrc-file nil

                 (gnus-group-get-new-news level))))
        (set-window-configuration win)))))

(gnus-demon-add-handler 'gnus-demon-close-connections nil 10)
(gnus-demon-add-handler 'db/gnus-demon-scan-news-on-level-2 5 5)



;;; Custom commands

;; Visit group under point and immediately close it; this updates gnus’ registry
;; as a side-effect
(bind-key "v u"
          '(lambda ()
             (interactive)
             (save-mark-and-excursion
               (when (gnus-topic-select-group)
                 (gnus-summary-exit))))
          gnus-group-mode-map)

;; Toggle visibility of News group
(bind-key "v c"
          (lambda ()
            (interactive)
