[Top][All Lists]

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

Re: How to get rid of horrible GUI functionality

From: Pascal J. Bourguignon
Subject: Re: How to get rid of horrible GUI functionality
Date: Thu, 02 Jun 2016 15:20:18 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

How to get rid of horrible GUI functionality:

(mapc (lambda (f) (when (fboundp (car f)) (apply (function funcall) f)))
      '((scroll-bar-mode     -1)
        (menu-bar-mode       -1)
        (tool-bar-mode       -1)
        (transient-mark-mode +1)
        (goto-address-mode   +1)))

Davin Pearson <address@hidden> writes:

> My new computer is a laptop and from time to time my fingers brush
> against the mouse sensor pad, causing the following window to appear:
> Change Default Buffer Size
> Change Buffer Font
> Increase Text Size
> Decrease Text Size
> Reset to Default
> I want to kill such pop up windows as it annoys me when I am trying to use 
> GNU Emacs to do useful work.
> Does anyone know how to go about disabling the mouse sensor pad, given
> that I have purchased an old fashioned mouse for GUI work.

In general, when you have problems like that, you should use C-h k

C-h k followed by the key or mouse button or trackpad anything.
This will show you
1- what key sym is generated by the event you provide,
2- what command is bound to that key.

So now you can bind this key to 'ignore or some other useful command.

For example, I have in my .emacs:

(loop for key in (list (kbd "<mouse-5>") (kbd "C-<mouse-5>") (kbd "S-<mouse-5>")
                       (kbd "<mouse-4>") (kbd "C-<mouse-4>") (kbd 
     do (global-set-key key 'ignore)) 

__Pascal Bourguignon__       
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk

reply via email to

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