* Fancier align-regexp?
@ 2009-01-13 5:25 jrwats
2009-01-13 14:57 ` Scott Frazer
0 siblings, 1 reply; 3+ messages in thread
From: jrwats @ 2009-01-13 5:25 UTC (permalink / raw)
To: help-gnu-emacs
Input:
Lorem ipsum dolor: sit amet
consectetur: adipiscing elit. Etiam
sed purus: Vestibulum
ante: ipsum
primis in: faucibus
You'll have to paste the following into emacs I'm afraid (or set your
browser to monospace font?) to get this to look 1/2 decent.
I want (the colons aligned with the words preceding them "following"
the colon to the aligned point)
Internet IP Address: 67.170.74.92
Subnet Mask: 255.255.252.0
Default Gateway: 67.170.72.1
DNS1: 68.87.69.146
DNS2: 68.87.85.98
DNS3: 68.87.78.130
calling align-regexp on ":" doesn't work obviously and puts the spaces
between the words preceding the colon:
rem ipsum dolor : sit amet
consectetur : adipiscing elit. Etiam
sed purus : Vestibulum
ante : ipsum
primis in : faucibus
I know align-regexp has a fancier method to use with a prefix arg, but
I'm not smart enough for it. Is it possible to accomplish this with
align-regexp? A macro?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fancier align-regexp?
2009-01-13 5:25 Fancier align-regexp? jrwats
@ 2009-01-13 14:57 ` Scott Frazer
2009-01-13 22:12 ` jrwats
0 siblings, 1 reply; 3+ messages in thread
From: Scott Frazer @ 2009-01-13 14:57 UTC (permalink / raw)
To: help-gnu-emacs
jrwats wrote:
> Input:
> Lorem ipsum dolor: sit amet
> consectetur: adipiscing elit. Etiam
> sed purus: Vestibulum
> ante: ipsum
> primis in: faucibus
>
> You'll have to paste the following into emacs I'm afraid (or set your
> browser to monospace font?) to get this to look 1/2 decent.
>
> I want (the colons aligned with the words preceding them "following"
> the colon to the aligned point)
> Internet IP Address: 67.170.74.92
> Subnet Mask: 255.255.252.0
> Default Gateway: 67.170.72.1
> DNS1: 68.87.69.146
> DNS2: 68.87.85.98
> DNS3: 68.87.78.130
>
>
> calling align-regexp on ":" doesn't work obviously and puts the spaces
> between the words preceding the colon:
> rem ipsum dolor : sit amet
> consectetur : adipiscing elit. Etiam
> sed purus : Vestibulum
> ante : ipsum
> primis in : faucibus
>
> I know align-regexp has a fancier method to use with a prefix arg, but
> I'm not smart enough for it. Is it possible to accomplish this with
> align-regexp? A macro?
>
C-u M-x align-regexp \(\s-*.+\): -1 1 n
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fancier align-regexp?
2009-01-13 14:57 ` Scott Frazer
@ 2009-01-13 22:12 ` jrwats
0 siblings, 0 replies; 3+ messages in thread
From: jrwats @ 2009-01-13 22:12 UTC (permalink / raw)
To: help-gnu-emacs
>
> C-u M-x align-regexp \(\s-*.+\): -1 1 n- Hide quoted text -
>
Awesome -1 ==> justify === perfect.
Many thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-13 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 5:25 Fancier align-regexp? jrwats
2009-01-13 14:57 ` Scott Frazer
2009-01-13 22:12 ` jrwats
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.