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

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

bug#30747: Emacs lacks a command to horizontally recenter


From: Lars Ingebrigtsen
Subject: bug#30747: Emacs lacks a command to horizontally recenter
Date: Fri, 25 Jun 2021 16:46:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> Emacs has fancy commands to vertically recenter,
> C-l runs the command recenter-top-bottom.
>
> But alas no command to horizontally recenter.
>
> All it has are the commands on
> (info "(emacs) Horizontal Scrolling") Not good enough.
>
> "It's just not fair." "Thin is in, fat is shat."
>
> The future horizontal-recenter command (please implement) should keep
> the cursor upon the same character (x), but just move the view screen ([
> ]) so that x is now in the center.
>
> ......[.......x..]...... BEFORE
> .........[....x.....]... AFTER

So this would only be for buffers where truncate-lines is non-nil?  Yes,
it'd be handy to have such a command...  or perhaps `C-l' should just do
this automatically (in these buffers)?

Any opinions?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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