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: Daniel Fleischer
Subject: Re: Right justify the comments starting from the position of `#' for all lines.
Date: Mon, 27 Sep 2021 17:43:45 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

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 (!)
powerful but a bit hidden, see https://emacs.stackexchange.com/a/16902
for documentation. It allows you to create blocks, fill them with
strings, fill them with integers series, insert/append text, kill,
reverse, align, sort and more. 

-- 

Daniel Fleischer



reply via email to

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