forked from jyp/elastic-modes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.txt
49 lines (25 loc) · 1.27 KB
/
test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
aaaa| four a's and a bar
| four spaces and a bar
iiii| four i's and a bar
| four spaces and a bar
Try typing spaces on the next line, noticing where the cursor falls.
Example elastic table to play with:
Column A Column B Column C
short cells first row
a very long cell here notice the blank cell
mostly-blank row
another row which is still in the tabble b/c the previous line ended in a tab
Relative indentation test:
start outer block |
| align to bar
start inner block
this block is indented from the bar
the leading space here has tabs followed by spaces followed by tabs
end inner block
|
end outer block
A code example using both modes. Yes, elastic-table-mode is basically the same thing as “elastic tabstops”, but notice how you also need elastic-indent-mode to align the broken-up sum.
void exampleFunc(int s, int medium, int verylongargname) {
printf("sum of numbers: %i", s + /* the first arg */
medium + /* the second arg */
verylongargname); /* the third arg */