emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* face for upcoming deadlines in agenda
@ 2018-02-26 17:36 Alex Branham
  2018-02-26 22:16 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Branham @ 2018-02-26 17:36 UTC (permalink / raw)
  To: emacs-orgmode

Is there a face that controls agenda items with an upcoming deadline are
displayed? It seems to just use "default" for me. I'm talking about
items with a deadline within 'org-deadline-warning-days' number of days
from now.

If not, is there any way of getting someone to implement that? I'd do it
myself, but the way Emacs deals with faces is a bit of a mystery to me.

Thanks,
Alex

Emacs  : GNU Emacs 26.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.26)
 of 2018-02-10
Package: Org mode version 9.1.7 (release_9.1.7-1-ga01045 @ /home/alex/.emacs.d/lib/org/lisp/)

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

* Re: face for upcoming deadlines in agenda
  2018-02-26 17:36 face for upcoming deadlines in agenda Alex Branham
@ 2018-02-26 22:16 ` Nicolas Goaziou
  2018-02-26 22:20   ` Alex Branham
  2018-02-26 22:44   ` Alex Branham
  0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2018-02-26 22:16 UTC (permalink / raw)
  To: Alex Branham; +Cc: emacs-orgmode

Hello,

Alex Branham <alex.branham@gmail.com> writes:

> Is there a face that controls agenda items with an upcoming deadline are
> displayed? It seems to just use "default" for me. I'm talking about
> items with a deadline within 'org-deadline-warning-days' number of days
> from now.

See `org-agenda-deadline-faces'

Regards,

-- 
Nicolas Goaziou

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

* Re: face for upcoming deadlines in agenda
  2018-02-26 22:16 ` Nicolas Goaziou
@ 2018-02-26 22:20   ` Alex Branham
  2018-02-26 22:44   ` Alex Branham
  1 sibling, 0 replies; 7+ messages in thread
From: Alex Branham @ 2018-02-26 22:20 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode


On Mon 26 Feb 2018 at 16:16, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> Hello,
>
> Alex Branham <alex.branham@gmail.com> writes:
>
>> Is there a face that controls agenda items with an upcoming deadline are
>> displayed? It seems to just use "default" for me. I'm talking about
>> items with a deadline within 'org-deadline-warning-days' number of days
>> from now.
>
> See `org-agenda-deadline-faces'

Perfect, thanks!

Alex 

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

* Re: face for upcoming deadlines in agenda
  2018-02-26 22:16 ` Nicolas Goaziou
  2018-02-26 22:20   ` Alex Branham
@ 2018-02-26 22:44   ` Alex Branham
  2018-02-27  0:30     ` Nicolas Goaziou
  1 sibling, 1 reply; 7+ messages in thread
From: Alex Branham @ 2018-02-26 22:44 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1702 bytes --]

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)

Thanks again!
Alex

----------------------------------------------------------------------

From 1a3f167583f9c964b37f92f2f0a4d67840749677 Mon Sep 17 00:00:00 2001
From: Alex Branham <branham@utexas.edu>
Date: Mon, 26 Feb 2018 16:41:40 -0600
Subject: [PATCH] * lisp/org-faces.el(org-upcoming-distant-deadline-face): new
 face

---
 lisp/org-faces.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

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



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-org-faces.el-org-upcoming-distant-deadline-face.patch --]
[-- Type: text/x-patch, Size: 1426 bytes --]

From 1a3f167583f9c964b37f92f2f0a4d67840749677 Mon Sep 17 00:00:00 2001
From: Alex Branham <branham@utexas.edu>
Date: Mon, 26 Feb 2018 16:41:40 -0600
Subject: [PATCH] * lisp/org-faces.el(org-upcoming-distant-deadline-face): new
 face

---
 lisp/org-faces.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

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


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

* Re: face for upcoming deadlines in agenda
  2018-02-26 22:44   ` Alex Branham
@ 2018-02-27  0:30     ` Nicolas Goaziou
  2018-02-27  0:41       ` Alex Branham
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2018-02-27  0:30 UTC (permalink / raw)
  To: Alex Branham; +Cc: emacs-orgmode

Hello,

Alex Branham <alex.branham@gmail.com> 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?

Regards,

-- 
Nicolas Goaziou                                                0x80A93738

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

* Re: face for upcoming deadlines in agenda
  2018-02-27  0:30     ` Nicolas Goaziou
@ 2018-02-27  0:41       ` Alex Branham
  2018-02-27  0:46         ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Branham @ 2018-02-27  0:41 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2360 bytes --]


On Mon 26 Feb 2018 at 18:30, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> Hello,
>
> Alex Branham <alex.branham@gmail.com> 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 <branham@utexas.edu>
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



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-org-faces.el-org-upcoming-distant-deadline-face.patch --]
[-- Type: text/x-patch, Size: 1879 bytes --]

From 66a394b3736306e4039b29393915b4ca1821a86b Mon Sep 17 00:00:00 2001
From: Alex Branham <branham@utexas.edu>
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


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

* Re: face for upcoming deadlines in agenda
  2018-02-27  0:41       ` Alex Branham
@ 2018-02-27  0:46         ` Nicolas Goaziou
  0 siblings, 0 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2018-02-27  0:46 UTC (permalink / raw)
  To: Alex Branham; +Cc: emacs-orgmode

Alex Branham <alex.branham@gmail.com> writes:

> Done, thanks
>
> ------------------------------------------------------------
>
> From 66a394b3736306e4039b29393915b4ca1821a86b Mon Sep 17 00:00:00 2001
> From: Alex Branham <branham@utexas.edu>
> Date: Mon, 26 Feb 2018 18:39:50 -0600
> Subject: [PATCH] * lisp/org-faces.el(org-upcoming-distant-deadline-face): new
>  face

Applied. Thank you.

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

end of thread, other threads:[~2018-02-27  0:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26 17:36 face for upcoming deadlines in agenda Alex Branham
2018-02-26 22:16 ` Nicolas Goaziou
2018-02-26 22:20   ` Alex Branham
2018-02-26 22:44   ` Alex Branham
2018-02-27  0:30     ` Nicolas Goaziou
2018-02-27  0:41       ` Alex Branham
2018-02-27  0:46         ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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