emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: [OT-emacs] Scrolling horizontally
Date: Tue, 01 Feb 2011 12:15:05 +0100	[thread overview]
Message-ID: <87aaigvwee.fsf@member.fsf.org> (raw)
In-Reply-To: AANLkTinf2HJFgdWtHozGboKP91pbNaoUgBb=PJbHp0af@mail.gmail.com

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

Hi Marcelo,

> The only way I've found was to actually go to the long line and press
> C-e, which is totally not what I would like :)

,----[ C-h f scroll-left RET ]
| scroll-left is an interactive built-in function in `C source code'.
| 
| It is bound to <C-next>, C-x <.
| 
| (scroll-left &optional ARG SET-MINIMUM)
| 
| Scroll selected window display ARG columns left.
| Default for ARG is window width minus 2.
| Value is the total amount of leftward horizontal scrolling in
| effect after the change.
| If SET-MINIMUM is non-nil, the new scroll amount becomes the
| lower bound for automatic scrolling, i.e. automatic scrolling
| will not scroll a window to a column less than the value returned
| by this function.  This happens in an interactive call.
`----

,----[ C-h f scroll-right RET ]
| scroll-right is an interactive built-in function in `C source code'.
| 
| It is bound to <C-prior>, C-x >.
| 
| (scroll-right &optional ARG SET-MINIMUM)
| 
| Scroll selected window display ARG columns right.
| Default for ARG is window width minus 2.
| Value is the total amount of leftward horizontal scrolling in
| effect after the change.
| If SET-MINIMUM is non-nil, the new scroll amount becomes the
| lower bound for automatic scrolling, i.e. automatic scrolling
| will not scroll a window to a column less than the value returned
| by this function.  This happens in an interactive call.
`----

As you can read, those scroll about one window width by default.  If you
want to have a more "smooth" horizontal scroll experience, you could
wrap two custum commands around that call the default functions with a
sufficiently small ARG.

Bye,
Tassilo

  reply	other threads:[~2011-02-01 11:15 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 [this message]
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         ` Trackpad horizontal scrolling (was: Re: [OT-emacs] Scrolling horizontally) Tassilo Horn
2011-02-01 20:32           ` 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=87aaigvwee.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=emacs-orgmode@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 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).