emacs-orgmode
[Top][All Lists]
Advanced

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

Automatic formatting of the table as you type


From: ndame
Subject: Automatic formatting of the table as you type
Date: Fri, 27 Mar 2020 16:27:08 +0000 (GMT)


The other day a code was posted on Reddit which automatically formats
the table as you type:

https://i.imgur.com/lorIDhY.gif


The code looks pretty simple, the actual formatting code is only a few lines
and it might even be possible to rewrite it to simplify it even more:

https://reddit.com/r/emacs/comments/fosdi2/orgtableautoalignmode_minor_mode_for_auto/


Org should provide this feature out of the box as an optional minor
mode like org-indent-mode. It provides a much nicer user experience
than the current behavior where the table falls apart when you type in
it until you press TAB or such.
reply via email to

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