help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Best strategy to disable a touchpad on a laptop when in Emacs?


From: Arthur Miller
Subject: Re: Best strategy to disable a touchpad on a laptop when in Emacs?
Date: Wed, 31 Mar 2021 14:34:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Jean Louis <bugs@gnu.support> writes:

> * Arthur Miller <arthur.miller@live.com> [2021-03-31 13:34]:
>> Jean Louis <bugs@gnu.support> writes:
>> 
>> > * Arthur Miller <arthur.miller@live.com> [2021-03-31 09:33]:
>> >> disable-mouse works good enough seems like, at least good enough for me,
>> >> so I'll go with that. Thanks Purcell!
>> >
>> > OK you really wish to disable touchpad explicitly. I was thinking you
>> > are finding solution to disable touchpad while typing so that palm
>> > does not interfer with it.
>> 
>> Well, yes, that is what I wanted, but only in Emacs, not in other
>> applications. I don't wanna go click every now and then in some system
>> dialog or something. Disable-mouse-mode does the job.
>
> For this function:
> https://endlessparentheses.com/disable-mouse-only-inside-emacs.html
>
> - how can we turn on that minor mode this function with the first key
>   typed? That would disable the touchpad during typing.
>
> - how can we turn off that minor mode, 2 or number seconds after
>   typing?

You could put it on an idle timer, but why?

There is no reason to turn that mode on or off at all. Emacs is all
about typing keys. I don't see how I would use Emacs otherwise. I rarely
use mouse even normally on my desktop. I don't see the point of
constantly turning it on/off. It would be just unnecessary processing,
really. So I have put (global-disable-mouse-mode 1) in my init file.

By the way, to answer your previous mail too, I have seen Malabarba's
blog. Purcell's disable-mouse-mode does everything there already. You
can get it from his GH: https://github.com/purcell/disable-mouse




reply via email to

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