[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] face for upcoming deadlines in agenda
From: |
Alex Branham |
Subject: |
Re: [O] face for upcoming deadlines in agenda |
Date: |
Mon, 26 Feb 2018 18:41:02 -0600 |
User-agent: |
mu4e 1.0; emacs 26.0.91 |
On Mon 26 Feb 2018 at 18:30, Nicolas Goaziou <address@hidden> wrote:
> Hello,
>
> Alex Branham <address@hidden> writes:
>
>> I've attached a patch which gives a name to the 0.0 face in
>> org-agenda-deadline-faces. This lets themes customize the value more
>> easily. (I've already signed the FSF copyright papers)
>
> Thank you. Could you also provide a short ORG-NEW entry about it?
Done, thanks
------------------------------------------------------------
>From 66a394b3736306e4039b29393915b4ca1821a86b Mon Sep 17 00:00:00 2001
From: Alex Branham <address@hidden>
Date: Mon, 26 Feb 2018 18:39:50 -0600
Subject: [PATCH] * lisp/org-faces.el(org-upcoming-distant-deadline-face): new
face
---
etc/ORG-NEWS | 2 +-
lisp/org-faces.el | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index aff372582..a40dd1b9a 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -188,7 +188,7 @@ you should expect to see something like:
#+BEGIN_EXAMPLE
,#+STARTUP: shrink
#+END_EXAMPLE
-
+*** New face ~org-upcoming-distant-deadline~ which is meant to be used as the
face for distant deadlines, see ~org-agenda-deadline-faces~
** New functions
*** ~org-insert-structure-template~
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index 750ada1e9..ef00f5b2c 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -511,13 +511,18 @@ which days belong to the weekend."
(((class color) (min-colors 8) (background light)) (:foreground "red"))
(((class color) (min-colors 8) (background dark)) (:foreground "red"
:bold t))
(t (:bold t)))
- "Face for items scheduled previously, and not yet done."
+ "Face for items scheduled previously, and not yet done.
+See also `org-agenda-deadline-faces'."
:group 'org-faces)
+(defface org-upcoming-distant-deadline '((t :inherit org-default))
+ "Face for items scheduled previously, not done, and have a distant deadline.
+See also `org-agenda-deadline-faces'.")
+
(defcustom org-agenda-deadline-faces
'((1.0 . org-warning)
(0.5 . org-upcoming-deadline)
- (0.0 . default))
+ (0.0 . org-upcoming-distant-deadline))
"Faces for showing deadlines in the agenda.
This is a list of cons cells. The cdr of each cell is a face to be used,
and it can also just be like \\='(:foreground \"yellow\").
--
2.16.2
0001-lisp-org-faces.el-org-upcoming-distant-deadline-face.patch
Description: Text Data