From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: remapping a mouse button. Date: Wed, 13 Aug 2008 11:50:10 +0200 Message-ID: <87abfhmegd.fsf@tux.homenetwork> References: <5c81bc0c-746a-4eb1-80d1-558236fc2aff@r66g2000hsg.googlegroups.com> <87fxp948pz.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218621433 24607 80.91.229.12 (13 Aug 2008 09:57:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2008 09:57:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 11:58:05 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KTD7E-0001Et-Mr for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 11:58:05 +0200 Original-Received: from localhost ([127.0.0.1]:59790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTD6I-0005pl-F0 for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Aug 2008 05:57:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTD2Y-00040D-Ok for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 05:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTD2W-0003yV-EO for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 05:53:13 -0400 Original-Received: from [199.232.76.173] (port=33303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTD2V-0003y5-E1 for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 05:53:11 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.175]:22676) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTD2U-0004p9-Tr for help-gnu-emacs@gnu.org; Wed, 13 Aug 2008 05:53:11 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so69630ugc.48 for ; Wed, 13 Aug 2008 02:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=/jTiroQMf0/mZePvdB15Y2JSXrPFfM7Wj7B3ORkpCNo=; b=x3+ATADtj+oVXmFpsogj1kUmUL8VJrNn/JvsTRJ7ukCknchC72e5fhndpuGqyU3OGr oYKRU4VIhAcYkJj+TEg0LA1WMgTU6c8pJebf0AGdLX6rfLr56N4QwJSrunw9w0nJpzJ2 /1Nwyo+pnz9Dy6l/Uqbc8P5N4ZrGKYD/7hWB4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; b=q+KsLxuEOb7+K5wvxD0UPRNd/5w/rHIbqyJsBh/kmo3PFe2/EwErFL+bTruqDG3QFo MJj4QXS5MU2OQZtwpEt4oQkstCgErOdPnFnFjrZj7DsygKQeJLwnmxWAgRawjvoNPQ7t 90E7KMVyGUWdBlFS21fF026b34tBd3Em8rpZk= Original-Received: by 10.67.116.9 with SMTP id t9mr420994ugm.65.1218621189771; Wed, 13 Aug 2008 02:53:09 -0700 (PDT) Original-Received: from tux.homenetwork ( [77.197.77.211]) by mx.google.com with ESMTPS id q40sm775340ugc.23.2008.08.13.02.53.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 02:53:09 -0700 (PDT) In-Reply-To: <87fxp948pz.fsf@lion.rapttech.com.au> (Tim X.'s message of "Wed, 13 Aug 2008 18:31:20 +1000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56550 Archived-At: Tim X writes: > rgb writes: > >> My Mouse-2 button is also the wheel. >> That makes stuff like using flyspell-correct-word hard because you >> need to try not to scroll while pressing it. >> What I want is for Mouse-4 to be viewed as Mouse-2 >> That is, do anything that would normally happen if I used Mouse-2. > > if your running under X, I believe you can configure this for all apps > in the X config file (i.e. xorg.conf, xfee86.conf). > > Tim As Lennart said you call ls with -1 arg or you can always call ls with this arg setting it like that: ,---- | (setq eshell-ls-initial-args '(-1)) `---- now when you call for example "ls | wc -l" , you will have the good number of lines. It would be cool to have a function to call in some hook to call ls -1 only if there is a "|" after ls, this function do that but i need a hook to call it: ,---- | (defun eshell-set-ls () | (let ((com-line | (eshell-parse-arguments (re-search-backward "ls") (line-end-position)))) | (if (equal (nth 1 com-line) '(eshell-operator "|")) | (setq eshell-ls-initial-args '(-1)) | (setq eshell-ls-initial-args nil)))) `---- -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France