Define the face `org-agenda-calendar-daterange'

* etc/ORG-NEWS: Announce the introduction of the new face
  `org-agenda-calendar-daterange'.
* lisp/org-faces.el: Define the face `org-agenda-calendar-daterange'.
* lisp/org-agenda.el (org-agenda-get-blocks): Apply the face
  `org-agenda-calendar-daterange' to entries with a date range.
This commit is contained in:
Gautier Ponsinet 2023-01-19 22:18:12 +01:00 committed by Ihor Radchenko
parent 22dea8557f
commit 84ead47d3c
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
3 changed files with 10 additions and 1 deletions

View File

@ -55,6 +55,11 @@ document header:
,#+LATEX_HEADER: \DefineVerbatimEnvironment{lstlisting}{Verbatim}{...whatever...}
#+END_src
*** New face: ~org-agenda-calendar-daterange~
The face ~org-agenda-calendar-daterange~ is used to show entries with
a date range in the agenda. It inherits from the default face in
order to remain backward-compatible.
* Version 9.6
** Important announcements and breaking changes

View File

@ -7110,7 +7110,7 @@ scheduled items with an hour specification like [h]h:mm."
(throw :skip t))
(setq face (if (= d1 d2)
'org-agenda-calendar-event
nil))
'org-agenda-calendar-daterange))
(setq marker (org-agenda-new-marker (point))
category (org-get-category))
(setq effort (save-match-data (or (get-text-property (point) 'effort)

View File

@ -660,6 +660,10 @@ month and 365.24 days for a year)."
"Face used for agenda entries that come from the Emacs diary."
:group 'org-faces)
(defface org-agenda-calendar-daterange '((t :inherit default))
"Face used to show entries with a date range in the agenda."
:group 'org-faces)
(defface org-agenda-calendar-event '((t :inherit default))
"Face used to show events and appointments in the agenda."
:group 'org-faces)