help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-l equiv w/ "truncate lines" mode?


From: Xah Lee
Subject: Re: C-l equiv w/ "truncate lines" mode?
Date: Tue, 8 Apr 2008 21:36:01 -0700 (PDT)
User-agent: G2/1.0

On Apr 8, 1:42 pm, "Bryan W. Lepore" <Bryan.Lep...@umassmed.edu>
wrote:
> is there a C-l equivalent -- perhaps "center vertical"? -- in "truncate
> lines" mode (that is ativated by M-x toggle-truncate-lines)?
>
> -bryan

C-l (Alt+x recenter) works for me in truncate-lines minor mode.

perhaps you wanted a new command that scroll left or right
horizontally by certain points so that your cursor is at the center?

if so you could write a function that calls scroll-left or scroll-
right. The amount n, can be obtained by finding out the current
position of cursor wrt the current line length. You can find out
current position of cursor with (point), and beginning and ending pos
of the current line with point-at-bol and point-at-eol.

  Xah
  xah@xahlee.org
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]