* Change Todo colors
@ 2014-03-01 2:00 Chris Henderson
2014-03-01 6:24 ` zwz
0 siblings, 1 reply; 4+ messages in thread
From: Chris Henderson @ 2014-03-01 2:00 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
I'd like to change the color of Next to Red and Started to brown. At the
moment, todo/ next and started all showing as red.
Here is my .emacs snippet.
(setq org-todo-keywords
'((sequence "TODO(t)" "Next(n)" "Started(s)" "|" "DONE(d!)")
(sequence "|" "CANCELED(c)")))
(setq org-todo-keyword-faces
'(("CANCELED" . (:foreground "blue" :weight bold))))
[-- Attachment #2: Type: text/html, Size: 604 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Change Todo colors
2014-03-01 2:00 Change Todo colors Chris Henderson
@ 2014-03-01 6:24 ` zwz
2014-03-03 15:11 ` Fabrice Niessen
0 siblings, 1 reply; 4+ messages in thread
From: zwz @ 2014-03-01 6:24 UTC (permalink / raw)
To: emacs-orgmode
You should use "custom-set-faces" instead of "setq".
Chris Henderson <henders254@gmail.com> writes:
> I'd like to change the color of Next to Red and Started to brown. At the
> moment, todo/ next and started all showing as red.
>
> Here is my .emacs snippet.
>
> (setq org-todo-keywords
> '((sequence "TODO(t)" "Next(n)" "Started(s)" "|" "DONE(d!)")
> (sequence "|" "CANCELED(c)")))
>
> (setq org-todo-keyword-faces
> '(("CANCELED" . (:foreground "blue" :weight bold))))
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Change Todo colors
2014-03-01 6:24 ` zwz
@ 2014-03-03 15:11 ` Fabrice Niessen
2014-03-03 15:26 ` Jonathan Leech-Pepin
0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Niessen @ 2014-03-03 15:11 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
zwz wrote:
> Chris Henderson <henders254-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
>> I'd like to change the color of Next to Red and Started to brown. At the
>> moment, todo/ next and started all showing as red.
>>
>> Here is my .emacs snippet.
>>
>> (setq org-todo-keywords
>> '((sequence "TODO(t)" "Next(n)" "Started(s)" "|" "DONE(d!)")
>> (sequence "|" "CANCELED(c)")))
>>
>> (setq org-todo-keyword-faces
>> '(("CANCELED" . (:foreground "blue" :weight bold))))
>
> You should use "custom-set-faces" instead of "setq".
or `set-face-attribute', as I do in my Emacs configuration file[1]:
--8<---------------cut here---------------start------------->8---
(with-eval-after-load "org-faces"
;; faces for specific TODO keywords
(setq org-todo-keyword-faces
'(("NEW" . leuven-org-created-kwd)
("TODO" . org-todo)
("STRT" . leuven-org-inprogress-kwd)
("WAIT" . leuven-org-waiting-for-kwd)
("SDAY" . leuven-org-someday-kwd)
("DONE" . org-done)
("CANX" . org-done)))
;; Org standard faces
(set-face-attribute 'org-todo nil
:weight 'bold :box '(:line-width 1 :color "#D8ABA7")
:foreground "#D8ABA7" :background "#FFE6E4")
(set-face-attribute 'org-done nil
:weight 'bold :box '(:line-width 1 :color "#BBBBBB")
:foreground "#BBBBBB" :background "#F0F0F0")
;; Org non-standard faces
(defface leuven-org-created-kwd
'((t (:weight normal :box (:line-width 1 :color "#EEE9C3")
:foreground "#1A1A1A" :background "#FDFCD8")))
"Face used to display state NEW.")
(defface leuven-org-inprogress-kwd
'((t (:weight bold :box (:line-width 1 :color "#D9D14A")
:foreground "#D9D14A" :background "#FCFCDC")))
"Face used to display state STRT.")
(defface leuven-org-waiting-for-kwd
'((t (:weight bold :box (:line-width 1 :color "#89C58F")
:foreground "#89C58F" :background "#E2FEDE")))
"Face used to display state WAIT.")
(defface leuven-org-someday-kwd
'((t (:weight bold :box (:line-width 1 :color "#9EB6D4")
:foreground "#9EB6D4" :background "#E0EFFF")))
"Face used to display state SDAY."))
--8<---------------cut here---------------end--------------->8---
Best regards,
Fabrice
[1] https://github.com/fniessen/emacs-leuven/blob/master/emacs-leuven.el
--
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Change Todo colors
2014-03-03 15:11 ` Fabrice Niessen
@ 2014-03-03 15:26 ` Jonathan Leech-Pepin
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Leech-Pepin @ 2014-03-03 15:26 UTC (permalink / raw)
To: Fabrice Niessen; +Cc: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 4937 bytes --]
Should be able to just use `org-todo-keyword-faces` the way he was trying
in the original post. I've got the following in my init.el. Re-evaluating
it after changes (C-M-x) and then switching back to an org buffer makes the
changes on the fly:
,------------------------------------------------------------------------
| (setq
org-todo-keyword-faces
| `(("TODO"
| :weight bold
| :foreground ,(jlp/zenburn-color "zenburn-cyan"))
| ("CLOSE"
| :weight bold
| :underline (:color
| ,(jlp/zenburn-color
| "zenburn-blue"))
| :foreground ,(jlp/zenburn-color
| "zenburn-red"))
| ("WAIT"
| :weight bold
| :foreground ,(jlp/zenburn-color
| "zenburn-yellow"))
| ("PEND"
| :weight bold
| :foreground ,(jlp/zenburn-color
| "zenburn-orange"))
| ("MEET"
| :weight bold
| :foreground ,(jlp/zenburn-color
| "zenburn-yellow"))
| ("MET"
| :weight bold
| :foreground ,(jlp/zenburn-color
| "zenburn-yellow-2"))
| ("TIME"
| :weight bold
| :foreground ,(jlp/zenburn-color
| "zenburn-yellow"))
| ("CLOCKED"
| :weight bold
| :foreground ,(jlp/zenburn-color
| "zenburn-yellow-2"))))
`------------------------------------------------------------------------
jlp/zenburn-color is just a shortcut to pull the list of colors from the
Zenburn color theme rather than have to remember the equivalent HEX colors.
Regards,
Jon
On 3 March 2014 10:11, Fabrice Niessen <fni-news@pirilampo.org> wrote:
> zwz wrote:
> > Chris Henderson <henders254@gmail.com> writes:
> >
> >> I'd like to change the color of Next to Red and Started to brown. At the
> >> moment, todo/ next and started all showing as red.
> >>
> >> Here is my .emacs snippet.
> >>
> >> (setq org-todo-keywords
> >> '((sequence "TODO(t)" "Next(n)" "Started(s)" "|" "DONE(d!)")
> >> (sequence "|" "CANCELED(c)")))
> >>
> >> (setq org-todo-keyword-faces
> >> '(("CANCELED" . (:foreground "blue" :weight bold))))
> >
> > You should use "custom-set-faces" instead of "setq".
>
> or `set-face-attribute', as I do in my Emacs configuration file[1]:
>
> --8<---------------cut here---------------start------------->8---
> (with-eval-after-load "org-faces"
>
> ;; faces for specific TODO keywords
> (setq org-todo-keyword-faces
> '(("NEW" . leuven-org-created-kwd)
> ("TODO" . org-todo)
> ("STRT" . leuven-org-inprogress-kwd)
> ("WAIT" . leuven-org-waiting-for-kwd)
> ("SDAY" . leuven-org-someday-kwd)
> ("DONE" . org-done)
> ("CANX" . org-done)))
>
> ;; Org standard faces
> (set-face-attribute 'org-todo nil
> :weight 'bold :box '(:line-width 1 :color
> "#D8ABA7")
> :foreground "#D8ABA7" :background "#FFE6E4")
>
> (set-face-attribute 'org-done nil
> :weight 'bold :box '(:line-width 1 :color
> "#BBBBBB")
> :foreground "#BBBBBB" :background "#F0F0F0")
>
> ;; Org non-standard faces
> (defface leuven-org-created-kwd
> '((t (:weight normal :box (:line-width 1 :color "#EEE9C3")
> :foreground "#1A1A1A" :background "#FDFCD8")))
> "Face used to display state NEW.")
> (defface leuven-org-inprogress-kwd
> '((t (:weight bold :box (:line-width 1 :color "#D9D14A")
> :foreground "#D9D14A" :background "#FCFCDC")))
> "Face used to display state STRT.")
> (defface leuven-org-waiting-for-kwd
> '((t (:weight bold :box (:line-width 1 :color "#89C58F")
> :foreground "#89C58F" :background "#E2FEDE")))
> "Face used to display state WAIT.")
> (defface leuven-org-someday-kwd
> '((t (:weight bold :box (:line-width 1 :color "#9EB6D4")
> :foreground "#9EB6D4" :background "#E0EFFF")))
> "Face used to display state SDAY."))
> --8<---------------cut here---------------end--------------->8---
>
> Best regards,
> Fabrice
>
> [1] https://github.com/fniessen/emacs-leuven/blob/master/emacs-leuven.el
>
> --
> Fabrice Niessen
> Leuven, Belgium
> http://www.pirilampo.org/
>
>
>
[-- Attachment #2: Type: text/html, Size: 9672 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-03 15:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-01 2:00 Change Todo colors Chris Henderson
2014-03-01 6:24 ` zwz
2014-03-03 15:11 ` Fabrice Niessen
2014-03-03 15:26 ` Jonathan Leech-Pepin
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).