all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yurivkhan@gmail.com>
To: Alexander Stepanov <help-gnu-emacs@gnu.org>
Subject: Re: Word wrap and horizontal scrolling
Date: Mon, 14 Mar 2011 10:48:11 +0600	[thread overview]
Message-ID: <AANLkTimTX7+Ywjz-WiCHSm96FdpiS7cnp_sei4pyCQeF@mail.gmail.com> (raw)
In-Reply-To: <ade23063-c81f-4715-b7d6-6e5fcb40e02b@f31g2000pri.googlegroups.com>

On Sun, Mar 13, 2011 at 21:53, Alexander Stepanov <darkdrip@gmail.com> wrote:
> I am still trying to make emacs work as usual Windows text editor such
> as Notepad++ and MS Visual Studio. I can turn off word wrap in Notepad+
> + and it will show horizontal scrollbar. To do such in emacs i must
> input M-x toggle-truncate-lines and scroll to the left and to the
> right using C-PgDn and C-PgUp. But this method scrolls code with too
> big offset.

You can press C-h k C-PgDn and learn that scroll-left accepts an
optional argument that specifies how much to scroll, and that the
default is window width minus two. Then, you have options.

Firstly, you can specify this argument each time you use scroll-left:
C-u 20 C-PgDn will scroll by 20 columns.

Alternatively, you can write your own version with a different default
and bind it to C-PgDn:

(defun my-scroll-left (&optional arg set-minimum)
    (interactive "P")
    (scroll-left (or arg 4) set-minimum))
(global-set-key (kbd "C-<next>") 'my-scroll-left)



  reply	other threads:[~2011-03-14  4:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-13 15:53 Word wrap and horizontal scrolling Alexander Stepanov
2011-03-14  4:48 ` Yuri Khan [this message]
2011-03-14  5:58 ` Le Wang
     [not found] ` <mailman.3.1300082295.2602.help-gnu-emacs@gnu.org>
2011-03-31  5:54   ` Alexander Stepanov

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=AANLkTimTX7+Ywjz-WiCHSm96FdpiS7cnp_sei4pyCQeF@mail.gmail.com \
    --to=yurivkhan@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.