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 22:04:57 +0800

On Mon, Sep 27, 2021 at 9:25 PM Daniel Fleischer <danflscr@gmail.com> wrote:
>
> 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 '#'.

Thank you very much. It really works. BTW, how to adjust/control/set
the position of the starting '#' in the ultimate aligned results?

Best, HZ



reply via email to

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