emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: From formatted to table


From: Bernt Hansen
Subject: [Orgmode] Re: From formatted to table
Date: Tue, 29 Sep 2009 14:21:02 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

andrea Crotti <address@hidden> writes:

> I have for example a table where
>
> | one thing     | dsjfls   |
> | two things    | dslkjfls |
> | three abc dej | dsf      |
>
> And I would like to get
>
> | one   | thing   | dsjfls   |
> | two   | things  | dslkjfls |
> | three | abc dej | dsf      |
>
> I tried some simple substitutions but substituting all the spaces in
> the region selected will cause problems elsewhere.  I would need to
> substitute " " only in one column, is that possible?

Anything is possible in Emacs :) -- just look at org-mode!

This sounds like a use for a keyboard macro to me...

Position point on line 1 of the table
C-x (
C-s SPC C-s RET |
C-a C-n
C-x e
and repeat 'e' for every line in the table
then C-p C-c C-c to realign.

If you do this a lot you can save the macro or build a lisp function
that does it - repeating for the entire table.

HTH,
-Bernt







reply via email to

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