summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-gnus.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/init-gnus.el b/lisp/init-gnus.el
index bd0f072..3fbbd51 100644
--- a/lisp/init-gnus.el
+++ b/lisp/init-gnus.el
@@ -269,6 +269,11 @@ read. Don't ask to confirm."
"Go to next group without selecting the first article."
(ad-set-arg 0 t))
+(defun km/gnus-setup-local-ace-jump ()
+ (add-hook 'ace-jump-mode-end-hook '(lambda () (gnus-summary-scroll-up 0))
+ nil t))
+(add-hook 'gnus-summary-mode-hook 'km/gnus-setup-local-ace-jump)
+
;; This overrides `gnus-summary-post-news', which is also bound to
;; 'S p'.
(define-key gnus-summary-mode-map "a" 'ace-jump-mode)