Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does emacs support multi column editing?

Emacs, like most text editors, supports editing from top to bottom:

word1
word2
word3

but, unlike Microsoft Word, I can't figure out how to edit in two columns:

col1    col2
word1   word2
word3
word4

Note: Editing in the first column does not change the spacing of the second.

Is this possible?

like image 760
sdasdadas Avatar asked Dec 27 '22 00:12

sdasdadas


2 Answers

Org mode does. Just create a new file, call M-x org-mode and then paste this in:

* Look! A table! 
| col1   |  col2.  |
| word1 |  word2 |
| word3 |              |
| word4 |              |

Add as many columns as you want and this should behave the way you expect. Look at org-mode's documentation for the key bindings.
http://orgmode.org/manual/Tables.html

like image 136
Malabarba Avatar answered Jan 02 '23 08:01

Malabarba


I'm not sure if this fits your requirements, but you might take a look at Two Column Editing.

like image 26
Keith Flower Avatar answered Jan 02 '23 07:01

Keith Flower