unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* scrollbar and mouse buttons
@ 2008-04-30 16:14 giglio robbo' d'acciaio
  0 siblings, 0 replies; 2+ messages in thread
From: giglio robbo' d'acciaio @ 2008-04-30 16:14 UTC (permalink / raw)
  To: help-gnu-emacs

In previous version mouse buttons left and right had a different behavior,
left click on the scoll-bar was linked to PgDown, right click to PgUp and the
middle click to go-to-the-point.
How can I ripristinate this behavior.
-- 
      Daniele Giglio      Dona i tuoi cicli di clock alla ricerca!
      email in ROT13      http://boinc.berkeley.edu/
      qtvtyvb@vby.vg
                          --------------------
           This signature was automatically generated with
           Signify v1.14.  For this and other cool products,
           check out http://www.debian.org/





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

* Re: scrollbar and mouse buttons
       [not found] <mailman.11015.1209636307.18990.help-gnu-emacs@gnu.org>
@ 2008-05-01 11:57 ` Xah
  0 siblings, 0 replies; 2+ messages in thread
From: Xah @ 2008-05-01 11:57 UTC (permalink / raw)
  To: help-gnu-emacs

On Apr 30, 9:14 am, giglio robbo' d'acciaio <dgig...@iol.it> wrote:
> In previous version mouse buttons left and right had a different behavior,
> left click on the scoll-bar was linked to PgDown, right click to PgUp and the
> middle click to go-to-the-point.
> How can I ripristinate this behavior.

untested, but you can do:

(global-set-key (kbd "<down-mouse-1>") 'func-name) ; left mouse button
(global-set-key (kbd "<down-mouse-2>") 'func-name) ; mid mouse button
(global-set-key (kbd "<down-mouse-3>") 'func-name) ; right mouse
button

Useful function to know are:

describe-key, describe-function.

Effectively, they let you find out what function is bind to what input
(keypress or menu or mouse click), and vice versa.

  Xah
  xah@xahlee.org
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-01 11:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.11015.1209636307.18990.help-gnu-emacs@gnu.org>
2008-05-01 11:57 ` scrollbar and mouse buttons Xah
2008-04-30 16:14 giglio robbo' d'acciaio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).