all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: remapping a mouse button.
Date: Wed, 13 Aug 2008 11:50:10 +0200	[thread overview]
Message-ID: <87abfhmegd.fsf@tux.homenetwork> (raw)
In-Reply-To: <87fxp948pz.fsf@lion.rapttech.com.au> (Tim X.'s message of "Wed,  13 Aug 2008 18:31:20 +1000")

Tim X <timx@nospam.dev.null> writes:

> rgb <rbielaws@i1.net> 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




  reply	other threads:[~2008-08-13  9:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12 16:42 remapping a mouse button rgb
2008-08-13  8:31 ` Tim X
2008-08-13  9:50   ` Thierry Volpiatto [this message]
2008-08-14 15:53   ` rgb

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=87abfhmegd.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.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.