all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* align multiple regexp in one line
@ 2008-12-31  7:32 Fabian Braennstroem
  2008-12-31 15:00 ` Scott Frazer
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Braennstroem @ 2008-12-31  7:32 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

    I am trying to align lines with several characters, e.g.
    a comma separated list, with align-regexp.
    The line looks like:
    word1, word2 , word3, word5
    wordasdf1, wordasdlfk2 , wordasdlf3, word5

    Marking and using 'align-regexp ,' would just create the alignment according to the first comma.
    Is there a function, which aligns the whole region?

Greetings!
 Fabian


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: align multiple regexp in one line
  2008-12-31  7:32 align multiple regexp in one line Fabian Braennstroem
@ 2008-12-31 15:00 ` Scott Frazer
  2008-12-31 15:39   ` Fabian Braennstroem
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Frazer @ 2008-12-31 15:00 UTC (permalink / raw)
  To: help-gnu-emacs

On Dec 31, 2:32 am, Fabian Braennstroem <f.braennstr...@gmx.de> wrote:
> Hi,
>
>     I am trying to align lines with several characters, e.g.
>     a comma separated list, with align-regexp.
>     The line looks like:
>     word1, word2 , word3, word5
>     wordasdf1, wordasdlfk2 , wordasdlf3, word5
>
>     Marking and using 'align-regexp ,' would just create the alignment according to the first comma.
>     Is there a function, which aligns the whole region?
>

C-u M-x align-regexp \(\s-*\),RET RET RET y


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: align multiple regexp in one line
  2008-12-31 15:00 ` Scott Frazer
@ 2008-12-31 15:39   ` Fabian Braennstroem
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Braennstroem @ 2008-12-31 15:39 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Scott,
* Scott Frazer <frazer.scott@gmail.com> wrote:
> On Dec 31, 2:32 am, Fabian Braennstroem <f.braennstr...@gmx.de> wrote:
>> Hi,
>>
>>     I am trying to align lines with several characters, e.g.
>>     a comma separated list, with align-regexp.
>>     The line looks like:
>>     word1, word2 , word3, word5
>>     wordasdf1, wordasdlfk2 , wordasdlf3, word5
>>
>>     Marking and using 'align-regexp ,' would just create the alignment according to the first comma.
>>     Is there a function, which aligns the whole region?
>>
>
> C-u M-x align-regexp \(\s-*\),RET RET RET y
Thanks! Works nice!

Greetings!
 Fabian


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-31 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-31  7:32 align multiple regexp in one line Fabian Braennstroem
2008-12-31 15:00 ` Scott Frazer
2008-12-31 15:39   ` Fabian Braennstroem

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.