From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: M Jared Finder Newsgroups: gmane.emacs.help Subject: Re: Changing Color Of Column # In Modeline Date: Tue, 22 Nov 2005 17:21:18 -0800 Message-ID: <1dGdnbkGAayNWR7enZ2dnUVZ_vydnZ2d@speakeasy.net> References: <1132621655.018878.193200@z14g2000cwz.googlegroups.com> <1132680280.003922.155730@g47g2000cwa.googlegroups.com> <1132693366.126479.244550@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132709259 9704 80.91.229.2 (23 Nov 2005 01:27:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Nov 2005 01:27:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 23 02:27:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EejOR-0007JI-Lq for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Nov 2005 02:25:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EejOR-0002sw-2I for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Nov 2005 20:25:51 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 22 Nov 2005 19:21:19 -0600 User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help,comp.emacs In-Reply-To: <1132693366.126479.244550@g14g2000cwa.googlegroups.com> Original-Lines: 18 Original-NNTP-Posting-Host: 64.81.73.172 Original-X-Trace: sv3-7sUHtv4uZvIAioM8LBEW94ayyb2H+b0QaO6LAmFlTndQog9XH+5fSzgBowfgN1egWwE2R/QrCoAgDo0!OOE6nLKz0wFV1ZtHXU0Sjlkp6603H1uJRoH0wbgNYdWgAQvOKnV0VqWYUfUWGZZvWmorD/uNsd7H!xJWYhVpkWhqKdYtcGIY5eKdH1Y1MRTSLIQ== Original-X-Complaints-To: abuse@speakeasy.net X-DMCA-Complaints-To: abuse@speakeasy.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:135683 comp.emacs:90626 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31286 Archived-At: 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