all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C-l equiv w/ "truncate lines" mode?
@ 2008-04-08 20:42 Bryan W. Lepore
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan W. Lepore @ 2008-04-08 20:42 UTC (permalink / raw)
  To: help-gnu-emacs

is there a C-l equivalent -- perhaps "center vertical"? -- in "truncate 
lines" mode (that is ativated by M-x toggle-truncate-lines)?

-bryan





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: C-l equiv w/ "truncate lines" mode?
       [not found] <mailman.10174.1207690896.18990.help-gnu-emacs@gnu.org>
@ 2008-04-09  4:36 ` Xah Lee
  0 siblings, 0 replies; 2+ messages in thread
From: Xah Lee @ 2008-04-09  4:36 UTC (permalink / raw)
  To: help-gnu-emacs

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/^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-09  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.10174.1207690896.18990.help-gnu-emacs@gnu.org>
2008-04-09  4:36 ` C-l equiv w/ "truncate lines" mode? Xah Lee
2008-04-08 20:42 Bryan W. Lepore

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.