From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: How to get rid of horrible GUI functionality Date: Mon, 28 Mar 2016 05:14:37 +0200 Organization: disorganized Message-ID: <87vb47pa3m.fsf@gmx.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459135060 5111 80.91.229.3 (28 Mar 2016 03:17:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 03:17:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 28 05:17:34 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1akNgM-0001vc-DL for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Mar 2016 05:17:34 +0200 Original-Received: from localhost ([::1]:39025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akNgI-00089i-38 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Mar 2016 23:17:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akNg8-00089W-2X for help-gnu-emacs@gnu.org; Sun, 27 Mar 2016 23:17:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akNg4-0002RM-TC for help-gnu-emacs@gnu.org; Sun, 27 Mar 2016 23:17:20 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akNg4-0002RA-NR for help-gnu-emacs@gnu.org; Sun, 27 Mar 2016 23:17:16 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1akNfz-0001mc-LS for help-gnu-emacs@gnu.org; Mon, 28 Mar 2016 05:17:11 +0200 Original-Received: from f052207183.adsl.alicedsl.de ([78.52.207.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2016 05:17:11 +0200 Original-Received: from david.hansen by f052207183.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Mar 2016 05:17:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: f052207183.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:2zUWgGOkeIA0O66HZvnMSDhiUB4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109683 Archived-At: Davin Pearson 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