Emacs Print Column

Is there any way to show the actual print size in a particular column (for example, 80), so that the background gets a different color for columns above "n" or is a solid line displayed in that column?

I found ColumnMarker (see here ), unfortunately, this addon only selects text that is outside the specified column.

I also tried changing the emacs window / frame size to (w / h) = (80 /). This usually works very well. Unfortunately, this does not apply to GNOME if the emacs window / frame is maximized!

+6
emacs
source share
4 answers

The fill-column-indicator.el value of the package does exactly what you want, it draws a vertical line in the fill-margin column, but can be configured to use a different value (comments of code codes in column 70, displaying a vertical row in column 80) .

EmacsWiki has files and setup tips.

http://www.emacswiki.org/emacs-en/FillColumnIndicator

+6
source share

As far as I remember, there is no way to set a different background to the right of the end of the line (which, I think, is what you are trying to do). You can set the background color for each frame and override it only for normal displayed characters.

My information is a bit outdated, so it's possible that impossibility only in Emacs <= 22 and Emacs 23 introduces a way.

+1
source share

I like to allocate-80 + for this. See this question

+1
source share

Add (font-lock-add-keywords nil '(("^[^\n]\\{80\\}\\(.*\\)$" 1 font-lock-warning-face t))) in its mode, and it will change the font lock after the 80th column.

0
source share

All Articles