Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

change the table view in Emacs

23 views
Skip to first unread message

Ivanov Dmitry

unread,
Jun 9, 2011, 2:43:29 AM6/9/11
to help-gn...@gnu.org
When I run a command table-insert it creates the table like this:

+-----+-----+-----+
| | | |
+-----+-----+-----+
| | | |
+-----+-----+-----+
| | | |
+-----+-----+-----+

How can I make it look like this?

+-----+-----+-----+
| | | |
+-----+-----+-----+
| | | |
+-----+-----+-----+
| | | |
+-----+-----+-----+


In fact, when I copy/pasted it from Emacs to my email program, it became correct.


Peter Dyballa

unread,
Jun 10, 2011, 3:10:42 AM6/10/11
to Ivanov Dmitry, help-gn...@gnu.org

Am 09.06.2011 um 08:43 schrieb Ivanov Dmitry:

> In fact, when I copy/pasted it from Emacs to my email program, it
> became correct.


Use monospaced instead of proportional fonts!

--
Greetings

Pete

UNIX is user friendly, it's just picky about who its friends are.


Bastien

unread,
Jun 10, 2011, 7:04:03 PM6/10/11
to Ivanov Dmitry, help-gn...@gnu.org
Hi Ivanov,

Ivanov Dmitry <usr...@gmail.com> writes:

> When I run a command table-insert it creates the table like this:
>
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
>
> How can I make it look like this?
>
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
>
>

> In fact, when I copy/pasted it from Emacs to my email program, it
> became correct.

Not a direct answer to your problem, but you should perhaps try org-mode
and orgtbl-mode, it allows you to reformat tables on the fly.

HTH,

--
Bastien

Ian Barton

unread,
Jun 13, 2011, 5:58:09 AM6/13/11
to help-gn...@gnu.org

> When I run a command table-insert it creates the table like this:
>
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
>
> How can I make it look like this?
>
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
> | | | |
> +-----+-----+-----+
>
>
> In fact, when I copy/pasted it from Emacs to my email program, it became correct.
>
>

Just place the point inside the table and press Tab. Note I only use
tables in org-mode, but I think this is standard Emacs behaviour.

Ian.

0 new messages