all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Is there equivalent C-l for columns?
Date: Wed, 15 Jun 2022 11:00:14 +0200	[thread overview]
Message-ID: <87r13q8foh.fsf@dataswamp.org> (raw)
In-Reply-To: courier.0000000062A99683.00001B60@stw1.rcdrun.com

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




  reply	other threads:[~2022-06-15  9:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15  8:21 Is there equivalent C-l for columns? Jean Louis
2022-06-15  9:00 ` Emanuel Berg [this message]
2022-06-15 10:29 ` Michael Heerdegen
2022-06-15 11:08   ` Michael Heerdegen
2022-06-15 11:36     ` Emanuel Berg
2022-06-15 11:43       ` Robert Pluim
2022-06-15 11:22   ` Jean Louis
2022-06-15 11:33     ` Michael Heerdegen
2022-06-15 11:40     ` Emanuel Berg
2022-06-15 11:29   ` Emanuel Berg

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=87r13q8foh.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --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.