emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Better mouse navigation in Info-mode


From: Drew Adams
Subject: RE: [External] : Better mouse navigation in Info-mode
Date: Fri, 20 Sep 2024 15:54:35 +0000

> Some computer mice have additional buttons off to the side, Emacs
> supports two of these additional buttons as `<mouse-8>` and `<mouse-9>`.
> 
> Conventionally, in web-browsers and similar applications these buttons
> are mapped to history-backwards and history-forwards respectively.
> 
> I suggest implementing this for Info-mode by default, with:
> 
> (define-key Info-mode-map (kbd "<mouse-8>") #'Info-history-back)
> (define-key Info-mode-map (kbd "<mouse-9>") #'Info-history-forward)
> 
> And similarly for other modes that have history navigation.

Dunno if relevant, but info+.el has long had this:

;; For other than `w32-win' and `ns-win', `mouse-4' and
;; `mouse-4' scroll, so cannot be used for history movement.
(when (and (boundp 'mouse-wheel-up-event) ; Emacs 22+
           (eq mouse-wheel-up-event 'wheel-down))
  (define-key Info-mode-map [mouse-4] 'Info-history-back)
  (define-key Info-mode-map [mouse-5] 'Info-history-forward))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]