From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jeff Miller Newsgroups: gmane.emacs.help Subject: Re: modeline + appointment font color Date: 04 Dec 2003 00:12:50 -0500 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070514987 28394 80.91.224.253 (4 Dec 2003 05:16:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2003 05:16:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 06:16:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARlqi-00013E-00 for ; Thu, 04 Dec 2003 06:16:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARmmD-0005OC-TQ for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Dec 2003 01:15:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (brussels sprouts) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 31 Original-Xref: shelby.stanford.edu gnu.emacs.help:118983 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14923 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14923 Kester Clegg writes: > My modeline warns me when I have an appointment. It says things like: > > .. 1:49 PM Wednesday 26 Nov App't in 11 min. (Message MML ... etc) > > Is there any way of changing the colour of the appt-mode-string that > appears in the modeline, so I actually notice it? I think this will do it for you, in Emacs at least. (defface appt-face '((t (:foreground "red" :background "white"))) "Face to indicate a current appointment." :group 'appt) (defadvice appt-disp-window (before appt-hilite-more activate) (when appt-mode-string (put-text-property 1 (- (length appt-mode-string) 1) 'face 'appt-face appt-mode-string))) (defadvice appt-check (after appt-hilite activate) (when appt-mode-string (put-text-property 1 (- (length appt-mode-string) 1) 'face 'appt-face appt-mode-string) (force-mode-line-update))) -- Jeff Miller jmiller@cablespeed.com