all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* modeline + appointment font color
@ 2003-11-26 13:51 Kester Clegg
  2003-12-04  5:12 ` Jeff Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Kester Clegg @ 2003-11-26 13:51 UTC (permalink / raw)



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?


-- 
************************************************************************
Kester Clegg				Dept. of Computer Science,
Research Assistant (UTC)		University of York, 
Tel (01904) 43 27 49			email: kester at cs.york.ac.uk
************************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modeline + appointment font color
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Miller @ 2003-12-04  5:12 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: modeline + appointment font color
  2003-12-04  5:12 ` Jeff Miller
@ 2003-12-04 13:58   ` Kester Clegg
  0 siblings, 0 replies; 3+ messages in thread
From: Kester Clegg @ 2003-12-04 13:58 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-04 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.