emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Jeff Horn <jrhorn424@gmail.com>, emacs-orgmode@gnu.org
Subject: Trackpad horizontal scrolling (was: Re: [OT-emacs] Scrolling horizontally)
Date: Tue, 01 Feb 2011 20:00:02 +0100	[thread overview]
Message-ID: <87bp2vr365.fsf_-_@member.fsf.org> (raw)
In-Reply-To: <AANLkTin9nBoKs3J7Khi7PXRemxZqHr+v6C+B0TrAcYRM@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Tue, 1 Feb 2011 10:57:13 -0600")

Hi all,

if you are all looking for making emacs scrolling horizontally by
sliding with one finger in the lower part of the trackpad (or with some
2 finger special move [dunno what Mac users like]), that shouldn't be
any different from any other keybinding.

For example, the syntaptics trackpad on my Lenovo Thinkpad emacs
mouse-6/7 events when sliding left/right in the lower trackpad corner.
So I can easily use that to make emacs scroll horizontally like it's the
common behavior in most web browsers:

--8<---------------cut here---------------start------------->8---
(global-set-key (kbd "<mouse-7>") (lambda ()
                                    (interactive)
                                    (scroll-left 1)))
(global-set-key (kbd "<mouse-6>") (lambda ()
                                    (interactive)
                                    (scroll-right 1)))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo

  reply	other threads:[~2011-02-01 19:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01  5:16 [OT-emacs] Scrolling horizontally Marcelo de Moraes Serpa
2011-02-01 11:15 ` Tassilo Horn
2011-02-01 15:53   ` Marcelo de Moraes Serpa
2011-02-01 16:32     ` Jeff Horn
2011-02-01 16:57       ` Marcelo de Moraes Serpa
2011-02-01 19:00         ` Tassilo Horn [this message]
2011-02-01 20:32           ` Trackpad horizontal scrolling (was: Re: [OT-emacs] Scrolling horizontally) Jeff Horn
2011-02-01 21:30             ` Trackpad horizontal scrolling Tassilo Horn

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87bp2vr365.fsf_-_@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=celoserpa@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).