[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there equivalent C-l for columns?
From: |
Emanuel Berg |
Subject: |
Re: Is there equivalent C-l for columns? |
Date: |
Wed, 15 Jun 2022 11:00:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Jean Louis wrote:
> I have file with long lines which I edit without wrapping
> and it becomes difficult when I am editing those characters
> in columns longer than the available window space in Emacs.
Yep, avoid that situation.
> So I am just assuming there could be some solution for long
> lines to bring the focus into window easier, similar to C-l
(defun recenter-col ()
(interactive)
(let ((beg (point-at-bol))
(end (point-at-eol)) )
(goto-char (+ beg (/ (- end beg) 2)) )))
(defalias 'rc #'recenter-col)
--
underground experts united
https://dataswamp.org/~incal