help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Changing Color Of Column # In Modeline


From: rgb
Subject: Re: Changing Color Of Column # In Modeline
Date: 22 Nov 2005 09:24:40 -0800
User-agent: G2/0.2

> How can I change the color of the column number displayed in the
> modeline when when its greater than a certain value?   The coding
> standard where I work requires that all code be within 80 columns.  So
> I would like to create an eye-catcher by changing the modeline column
> value to red after the point exceeds the 79th column.
>
> Is that possible?  Does anyone have a code snippet which does that or
> something similar?

http://www.emacswiki.org/cgi-bin/wiki/ColumnMarker

Using it is as easy as:

(require 'column-marker)
(add-hook foo-mode-hook (lambda ()(interactive)(column-marker-1 80)))



reply via email to

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