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 16:25:40 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin)

Hongyi Zhao [2021-09-27 Mon 17:54] wrote:

> Suppose I've the following code snippets:
>
> foo ...              # foo comments
>      bar ...     # bar comments
>           baz ...            # baz comments
> [...]
>
> Now, I want to right justify the comments starting from the position
> of `#' for all lines. Any hints/tips for achieving this goal?

Can highlight the lines, use 'align-regexp' and then enter '#'. 

-- 

Daniel Fleischer



reply via email to

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