Created
February 12, 2014 19:49
-
-
Save hub-cap/8963154 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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