864
by Andreas Roehler
column-marker.el merged |
1 |
Commands `column-marker-1', `column-marker-2', and |
2 |
`column-marker-3' each highlight a given column (using different |
|
3 |
background colors, by default).
|
|
4 |
||
5 |
- With no prefix argument, each highlights the current column
|
|
6 |
(where the cursor is).
|
|
7 |
||
8 |
- With a non-negative numeric prefix argument, each highlights that
|
|
9 |
column.
|
|
10 |
||
11 |
- With plain `C-u' (no number), each turns off its highlighting. |
|
12 |
||
13 |
- With `C-u C-u', each turns off all column highlighting. |
|
14 |
||
15 |
If two commands highlight the same column, the last-issued
|
|
16 |
highlighting command shadows the other - only the last-issued
|
|
17 |
highlighting is seen. If that "topmost" highlighting is then
|
|
18 |
turned off, the other highlighting for that column then shows
|
|
19 |
through.
|
|
20 |
||
21 |
Examples:
|
|
22 |
||
23 |
M-x column-marker-1 highlights the column where the cursor is, in
|
|
24 |
face `column-marker-1'. |
|
25 |
||
26 |
C-u 70 M-x column-marker-2 highlights column 70 in face |
|
27 |
`column-marker-2'. |
|
28 |
||
29 |
C-u 70 M-x column-marker-3 highlights column 70 in face
|
|
30 |
`column-marker-3'. The face `column-marker-2' highlighting no |
|
31 |
longer shows.
|
|
32 |
||
33 |
C-u M-x column-marker-3 turns off highlighting for column-marker-3,
|
|
34 |
so face `column-marker-2' highlighting shows again for column 70. |
|
35 |
||
36 |
C-u C-u M-x column-marker-1 (or -2 or -3) erases all column |
|
37 |
highlighting. |
|
38 |
||
39 |
These commands use `font-lock-fontify-buffer', so syntax |
|
40 |
highlighting (`font-lock-mode') must be turned on. There might be |
|
41 |
a performance impact during refontification. |