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: M Jared Finder
Subject: Re: Changing Color Of Column # In Modeline
Date: Tue, 22 Nov 2005 17:21:18 -0800
User-agent: Debian Thunderbird 1.0.7 (X11/20051017)

gamename wrote:
Thanks, but what I'm trying to figure out is how to change the color of
the column display on the _modeline_ itself.  So, if my point is at col
80 in the buffer, I'd like to update the modeline to show "C80" in some
eye-catching way.
Is that possible?

How about putting this in your init file:

(setf mode-line-position '(:eval (if (>= (current-column) 80)
                                     '(:propertize "(%l,%c)" face bold)
                                   "(%l,%c)")))

This code does not respect line-number-mode or column-number-mode; I've assumed you have them both on.

  -- MJF


reply via email to

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