1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

Add 'appt-notification' face (Bug#61661)

* lisp/calendar/appt.el (appt-notification): Declare the new face.
(appt-check): Implement the new face.
* etc/NEWS: Announce the new face.
This commit is contained in:
Protesilaos Stavrou 2023-02-20 21:03:08 +02:00 committed by Stefan Kangas
parent 9e05453a8c
commit 367c3f25a1
2 changed files with 14 additions and 1 deletions

View file

@ -152,6 +152,13 @@ right-aligned to is controlled by the new user option
It can be used to add, remove and reorder functions that change
the appearance of every tab on the tab bar.
** Miscellaneous
---
*** New face 'appt-notification' for 'appt-display-mode-line'.
It can be used to customize the look of the appointment notification
displayed on the mode line when 'appt-display-mode-line' is non-nil.
* Editing Changes in Emacs 30.1

View file

@ -165,6 +165,12 @@ Only relevant if reminders are being displayed in a window."
:type 'function
:group 'appt)
(defface appt-notification
'((t :inherit mode-line-emphasis))
"Face for appointment notification on the modeline.
Shown when `appt-display-mode-line' is non-nil."
:group 'mode-line-faces
:version "30.1")
;;; Internal variables below this point.
@ -406,7 +412,7 @@ displayed in a window:
(appt-mode-line (mapcar #'number-to-string
min-list)
t)
'face 'mode-line-emphasis)
'face 'appt-notification)
" ")))
;; Reset count to 0 in case we display another appt on the next cycle.
(setq appt-display-count (if (equal '(0) min-list) 0