unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jeff Miller <jmiller@cablespeed.com>
Subject: Re: modeline + appointment font color
Date: 04 Dec 2003 00:12:50 -0500	[thread overview]
Message-ID: <m33cc1mai5.fsf@localhost.cablespeed.com> (raw)
In-Reply-To: yqrr7zv6xvm.fsf@cs.york.ac.uk

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)))

-- 
Jeff Miller
jmiller@cablespeed.com

  reply	other threads:[~2003-12-04  5:12 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 [this message]
2003-12-04 13:58   ` Kester Clegg

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m33cc1mai5.fsf@localhost.cablespeed.com \
    --to=jmiller@cablespeed.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).