all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Hansen <david.hansen@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get rid of horrible GUI functionality
Date: Mon, 28 Mar 2016 05:14:37 +0200	[thread overview]
Message-ID: <87vb47pa3m.fsf@gmx.net> (raw)
In-Reply-To: cffc8040-b5aa-4c96-97b2-ab5729d1e6cf@googlegroups.com

Davin Pearson <davin.pearson@gmail.com> writes:

> My new computer is a laptop and from time to time my fingers brush
> against the mouse sensor pad

If you are on GNU/Linux or similar:

(defun turn-off-mouse (&optional _frame)
  (interactive)
  (let ((default-directory "~"))
    (call-process "synclient" nil nil nil "TouchpadOff=1")))

(defun turn-on-mouse (&optional _frame)
  (interactive)
  (let ((default-directory "~"))
    (call-process "synclient" nil nil nil "TouchpadOff=0")))

(add-hook 'focus-in-hook #'turn-off-mouse)
(add-hook 'focus-out-hook #'turn-on-mouse)
(add-hook 'delete-frame-functions #'turn-on-mouse)
(add-hook 'kill-emacs-hook #'turn-on-mouse)

(global-set-key (kbd "C-c m") #'turn-on-mouse)

David




  parent reply	other threads:[~2016-03-28  3:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-23  6:06 How to get rid of horrible GUI functionality Davin Pearson
2016-03-23  6:55 ` Dale Snell
2016-03-23  7:21 ` Yuri Khan
2016-03-23 10:58 ` tomas
2016-03-23 18:31   ` Bob Proulx
2016-03-24  9:08 ` Phillip Lord
2016-03-28  3:14 ` David Hansen [this message]
2016-04-06  2:12 ` Davin Pearson
2016-04-07 22:08 ` Pascal J. Bourguignon

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=87vb47pa3m.fsf@gmx.net \
    --to=david.hansen@gmx.net \
    --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.