Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created February 12, 2014 19:49
Show Gist options
  • Save hub-cap/8963154 to your computer and use it in GitHub Desktop.
Save hub-cap/8963154 to your computer and use it in GitHub Desktop.
;; Shortcut for offlineimap.el running
(eval-after-load "gnus"
'(progn
(define-key gnus-group-mode-map (kbd "v g")
(lambda ()
(interactive)
(offlineimap)))))
;; Add a hook to get news after offlineimap is finished
(add-hook 'offlineimap-event-hooks (lambda (msg-type &optional action)
(if (equal "finished\n" msg-type)
(gnus-group-get-new-news))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment