all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Best strategy to disable a touchpad on a laptop when in Emacs?
Date: Wed, 31 Mar 2021 14:34:48 +0200	[thread overview]
Message-ID: <AM9PR09MB497770D7B1B8D9A551D9DE4B967C9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <YGRQsrAWVFJeFA5I@protected.localdomain> (Jean Louis's message of "Wed, 31 Mar 2021 13:36:34 +0300")

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	other threads:[~2021-03-31 12:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-31  0:40 Best strategy to disable a touchpad on a laptop when in Emacs? Arthur Miller
2021-03-31  5:11 ` Jean Louis
2021-03-31  5:22   ` Arthur Miller
2021-03-31  5:23   ` Arthur Miller
2021-03-31  5:40     ` Jean Louis
2021-03-31  6:05       ` Arthur Miller
2021-03-31  6:25         ` Arthur Miller
2021-03-31  6:55           ` Jean Louis
2021-03-31 10:33             ` Arthur Miller
2021-03-31 10:36               ` Jean Louis
2021-03-31 12:34                 ` Arthur Miller [this message]
2021-03-31  8:32 ` Yuri Khan
2021-03-31 10:31   ` Arthur Miller
2021-03-31 10:34     ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM9PR09MB497770D7B1B8D9A551D9DE4B967C9@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.