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

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

Re: Right justify the comments starting from the position of `#' for all


From: Hongyi Zhao
Subject: Re: Right justify the comments starting from the position of `#' for all lines.
Date: Mon, 27 Sep 2021 23:18:00 +0800

On Mon, Sep 27, 2021 at 10:43 PM Daniel Fleischer <danflscr@gmail.com> wrote:
>
> Hongyi Zhao [2021-09-27 Mon 22:04] wrote:
>
> > Thank you very much. It really works. BTW, how to adjust/control/set
> > the position of the starting '#' in the ultimate aligned results?
>
> Call the function with 'C-u'. It will ask you some questions, use the
> same '#' but you now can specify the "amount of spacing".
>
> Another option is using the wonderful CUA-rectangle mode. It's very (!)

Do you use `!' for emphasizing?

> powerful but a bit hidden, see https://emacs.stackexchange.com/a/16902
> for documentation.

The corresponding source code is located at
<https://github.com/emacs-mirror/emacs/blob/79b5d66bd66458f6e669adee2698e9fd18c4bc3a/lisp/emulation/cua-base.el#L131-L251>.

> It allows you to create blocks, fill them with
> strings, fill them with integers series, insert/append text, kill,
> reverse, align, sort and more.

Thank you for letting me know about it

HZ



reply via email to

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