summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/km-gnus.el26
1 files changed, 16 insertions, 10 deletions
diff --git a/init/km-gnus.el b/init/km-gnus.el
index 0e09eef..e37ba1d 100644
--- a/init/km-gnus.el
+++ b/init/km-gnus.el
@@ -172,13 +172,19 @@ NO-NUMBER is non-nil, the number of lines is not added."
(interactive "r")
(km/snip-mail-quote beg end nil t)))
-(gnus-define-keys gnus-summary-mode-map
- "j" gnus-summary-next-unread-article
- ";" gnus-summary-universal-argument ;; mutt's tag
- "e" gnus-summary-scroll-up)
-
-(gnus-define-keys gnus-group-mode-map
- "e" gnus-topic-select-group)
-
-(gnus-define-keys gnus-article-mode-map
- "e" shr-browse-url)
+(add-hook 'gnus-summary-mode-hook
+ (lambda ()
+ (gnus-define-keys gnus-summary-mode-map
+ "j" gnus-summary-next-unread-article
+ ";" gnus-summary-universal-argument ;; mutt's tag
+ "e" gnus-summary-scroll-up)))
+
+(add-hook 'gnus-group-mode-hook
+ (lambda ()
+ (gnus-define-keys gnus-group-mode-map
+ "e" gnus-topic-select-group)))
+
+(add-hook 'gnus-article-mode-hook
+ (lambda ()
+ (gnus-define-keys gnus-article-mode-map
+ "e" shr-browse-url)))