From: Kester Clegg <kester@cs.york.ac.uk>
Subject: Re: modeline + appointment font color
Date: 04 Dec 2003 13:58:36 +0000 [thread overview]
Message-ID: <yqrwu9clm5v.fsf@cs.york.ac.uk> (raw)
In-Reply-To: m33cc1mai5.fsf@localhost.cablespeed.com
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
************************************************************************
prev parent reply other threads:[~2003-12-04 13:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-26 13:51 modeline + appointment font color Kester Clegg
2003-12-04 5:12 ` Jeff Miller
2003-12-04 13:58 ` Kester Clegg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yqrwu9clm5v.fsf@cs.york.ac.uk \
--to=kester@cs.york.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.