[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: modeline + appointment font color
From: |
Kester Clegg |
Subject: |
Re: modeline + appointment font color |
Date: |
04 Dec 2003 13:58:36 +0000 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Jeff Miller <jmiller@cablespeed.com> writes:
> Kester Clegg <kester@cs.york.ac.uk> 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)))
That's absolutely perfect - very impressive! :-)
--
************************************************************************
Kester Clegg Dept. of Computer Science,
Research Assistant (UTC) University of York,
Tel (01904) 43 27 49 email: kester at cs.york.ac.uk
************************************************************************