all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Better mouse navigation in Info-mode
@ 2024-09-20 11:31 jonas
  2024-09-20 15:54 ` [External] : " Drew Adams
  0 siblings, 1 reply; 2+ messages in thread
From: jonas @ 2024-09-20 11:31 UTC (permalink / raw)
  To: emacs-devel


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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [External] : Better mouse navigation in Info-mode
  2024-09-20 11:31 Better mouse navigation in Info-mode jonas
@ 2024-09-20 15:54 ` Drew Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Drew Adams @ 2024-09-20 15:54 UTC (permalink / raw)
  To: jonas@moller.systems, emacs-devel@gnu.org

> 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))

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-20 15:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20 11:31 Better mouse navigation in Info-mode jonas
2024-09-20 15:54 ` [External] : " Drew Adams

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.