From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Martins Subject: Re: Re: New Org-mode talk by Carsten Dominik Date: Mon, 29 Mar 2010 11:13:09 -0300 Message-ID: <6ac505ad1003290713w4718b139wdd096990ca9d84bd@mail.gmail.com> References: <927aeeaf1003071051q7a70abb5j3116e87e49331832@mail.gmail.com> <5FB98FBC-3C83-465E-B1C1-2EB348E33626@gmail.com> <6ac505ad1003161017x73a5c9ej1e6432cea88b674@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2019350330==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwFiR-0002Fq-Bg for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:13:19 -0400 Received: from [140.186.70.92] (port=34422 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwFiN-0002FD-Qa for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:13:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwFiK-0005uc-Uh for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:13:15 -0400 Received: from mail-yx0-f190.google.com ([209.85.210.190]:55522) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwFiK-0005uQ-PR for emacs-orgmode@gnu.org; Mon, 29 Mar 2010 10:13:12 -0400 Received: by yxe28 with SMTP id 28so804815yxe.27 for ; Mon, 29 Mar 2010 07:13:11 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============2019350330== Content-Type: multipart/alternative; boundary=001485f6cb28d607300482f11c72 --001485f6cb28d607300482f11c72 Content-Type: text/plain; charset=ISO-8859-1 Well, It works for white backgrounds but this color scheme is far from optimum. As I use both white background and black background for the night (I have read some academic papers that said white background is better for the eye fatigue but I am not quite sure of it) I need a white background setup Anyone out there has a proposal of color schemes for white (or at least not dark) backgrounds which could share with us? Daniel 2010/3/18 Carsten Dominik > > On Mar 16, 2010, at 6:17 PM, Daniel Martins wrote: > > I found a "minor" bug in cd-colors.el >> >> >> I use a variation of background/foreground according to day/night >> environments as suggested in >> >> http://www.jurta.org/en/emacs/dotemacs >> >> and which I reproduce below >> >> But using cd-colors and the day option which means >> >> (set-background-color "white") >> (set-foreground-color "black") >> >> I notice that the face org-hide remains black. >> > > I think that many of these faces will not work properly with a white > background - they are all only for a dark background. I would have thought > that the entire scheme is unusable with white. > > - Carsten > > > >> As I use >> >> >> >> (setq org-hide-leading-stars t) >> >> >> this is not quite convenient. >> >> So I commented the line of org-hide in cd-colors and everything worked >> fine! >> >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> `(org-tag ((t (:foreground ,tag)))) >> ;; `(org-hide ((t (:foreground "#191919")))) >> `(org-todo ((t (:background ,todo-bg :foreground "white" ,@box)))) >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> Daniel >> >> PS here is the text of my .emacs that I commented above >> >> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; >> >> >> >> ;;; colors >> >> (defun my-colors-light (&optional frame) >> "Set colors suitable for working in light environments, >> i.e. in daylight or under bright electric lamps." >> (interactive) >> (setq frame-background-mode 'light) >> (if frame >> (select-frame frame) >> (setq frame (selected-frame))) >> ;; The color with minimal eye fatigue in light environments >> ;; is "AntiqueWhite3" (RGB: 205 192 176), >> ;; (set-background-color "AntiqueWhite3") >> (set-background-color "white") >> (set-foreground-color "black") >> (when (facep 'region) >> (set-face-background 'region "DarkGrey" frame)) >> (when (facep 'fringe) >> (set-face-background 'fringe (face-background 'default) frame) >> (set-face-foreground 'fringe (face-foreground 'default) frame)) >> ;; When started Emacs under root, warn by red color in the modeline >> (when (and (facep 'mode-line) >> (file-exists-p "/root") >> (file-writable-p "/root")) >> (set-face-background 'mode-line "firebrick"))) >> >> (define-key global-map [f6 ?c ?d] 'my-colors-light) ;; c color d day >> >> (defun my-colors-dark (&optional frame) >> "Set colors suitable for working in the darkness without electricity." >> (interactive) >> (setq frame-background-mode 'dark) >> (if frame >> (select-frame frame) >> (setq frame (selected-frame))) >> (set-background-color "black") >> (set-foreground-color "DarkGrey") >> (when (facep 'region) >> (set-face-background 'region "DimGray" frame)) >> (when (facep 'fringe) >> (set-face-background 'fringe (face-background 'default) frame) >> (set-face-foreground 'fringe (face-foreground 'default) frame))) >> >> (define-key global-map [f6 ?c ?n] 'my-colors-dark) ;; c color n night >> >> ;; Automatically switch to dark background after sunset >> ;; and to light background after sunrise. >> ;; (Note that `calendar-latitude' and `calendar-longitude' >> ;; should be set before calling the `solar-sunrise-sunset') >> (defun my-colors-set (&optional frame) >> (interactive) >> (require 'solar) >> (if (and calendar-latitude calendar-longitude calendar-time-zone) >> (let* ((l (solar-sunrise-sunset (calendar-current-date))) >> (sunrise-string (apply 'solar-time-string (car l))) >> (sunset-string (apply 'solar-time-string (car (cdr l)))) >> (current-time-string (format-time-string "%H:%M"))) >> (if (or (string-lessp current-time-string sunrise-string) >> (string-lessp sunset-string current-time-string)) >> (my-colors-dark frame) >> (my-colors-light frame)) >> (if (and (boundp 'my-sunset-timer) (timerp my-sunset-timer)) >> (cancel-timer my-sunset-timer)) >> (if (and (boundp 'my-sunrise-timer) (timerp my-sunrise-timer)) >> (cancel-timer my-sunrise-timer)) >> (setq my-sunset-timer (run-at-time sunset-string (* 60 60 24) >> 'my-colors-dark)) >> (setq my-sunrise-timer (run-at-time sunrise-string (* 60 60 24) >> 'my-colors-light))))) >> >> >> (my-colors-set) >> (add-to-list 'after-make-frame-functions 'my-colors-set) >> >> >> >> >> >> >> 2010/3/9 Carsten Dominik : >> >>> >>> On Mar 7, 2010, at 7:51 PM, Manuel Amador wrote: >>> >>> Carsten, >>>> >>>> Can we get a copy of the color configuration you are using? >>>> >>>> -- Manuel >>> >>> Yes, I have put my color config here: >>> >>> http://orgmode.org/cd-colors.el >>> >>> This started as a copy of Peter Jones config and was then edited and >>> hacked >>> - which is why it may not be in the most convenient shape. Feel free to >>> package it up nicely and send me a better version. >>> >>> You also need something like this, adapted to your todo keywords. >>> >>> (setq org-todo-keyword-faces >>> '(("SDMB" . cd-org-someday-kwd-face) >>> ("STARTED" . cd-org-started-kwd-face) >>> ("STRT" . cd-org-started-kwd-face) >>> ("WAITING" . cd-org-waiting-kwd-face) >>> ("WAIT" . cd-org-waiting-kwd-face) >>> ("DELG" . cd-org-delegated-kwd-face) >>> ("PROJ" . cd-org-project-kwd-face) >>> ("DONE" . cd-org-done-kwd-face) >>> ("PRDN" . cd-org-done-kwd-face) >>> ("PRCL" . cd-org-cancelled-kwd-face) >>> ("CNCL" . cd-org-cancelled-kwd-face) >>> ("PRCN" . cd-org-cancelled-kwd-face) >>> ("TODO" . cd-org-todo-kwd-face) >>> ("SELECTED" . cd-org-todo-kwd-face) >>> ("INVITED" . cd-org-waiting-kwd-face) >>> ("SCHEDULED" . cd-org-done-kwd-face) >>> ("DECLINED" . cd-org-cancelled-kwd-face))) >>> >>> >>> Cheers! >>> >>> - Carsten >>> >>> >>>> On Sun, Mar 7, 2010 at 7:39 AM, Carsten Dominik >>>> wrote: >>>> >>>>> >>>>> On Mar 7, 2010, at 1:50 PM, Tom wrote: >>>>> >>>>> Stefan Vollmar nf.mpg.de> writes: >>>>>> >>>>>> >>>>>>> Hallo, >>>>>>> >>>>>>> we proudly present: >>>>>>> >>>>>>> "Emacs Org-mode: Organizing a Scientist's Life and Work" >>>>>>> >>>>>>> >>>>>> I noticed the org color config in the talk was much >>>>>> catchier (e.g. the keywords with bgcolor) than in the default org >>>>>> config. It would be a good idea to make org more appealing by >>>>>> coming up with a sexier color scheme. The appearance of org on >>>>>> the main page of orgmode.org is very spartan and can be a turn >>>>>> off for newbies who are used to applications with a more >>>>>> elaborate visual design. >>>>>> >>>>>> I think a better choice of default colors could improve the first >>>>>> impression a bit. Maybe people could send to the list screenshots >>>>>> of their config and one of the better ones could be used as a new >>>>>> default. >>>>>> >>>>> >>>>> The problem I see here is that if a new user downloads Emacs, >>>>> it will have white background and only default colors. >>>>> >>>>> I could of course make the screenshot on orgmode.org with my >>>>> color scheme[1], but then new users would not like the first >>>>> impression they get when they download emacs and install Org. >>>>> >>>>> I am interested in a discussion about how to handle this issue. >>>>> >>>>> - Carsten >>>>> >>>>> [1] The color scheme is based on the scheme by Peter Jones, who >>>>> in particular came up with the idea to make the TODO keywords look >>>>> like buttons. I use that idea, but with different colors. The >>>>> exact colors were not my creation, because I am really not talended >>>>> in this area. But I agree they look great - they were selected >>>>> by the same designer who created the special logo used on all >>>>> our spreadshirt shop items... >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Emacs-orgmode mailing list >>>>> Please use `Reply All' to send replies to the list. >>>>> Emacs-orgmode@gnu.org >>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>>> >>>>> >>>> >>>> >>>> -- >>>> Manuel >>>> >>> >>> - Carsten >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> > - Carsten > > > > --001485f6cb28d607300482f11c72 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well,

It works for white backgrounds but this color scheme is far f= rom optimum.

As I use both white background and black background for= the night (I have read some academic papers that said=A0 white background = is better for the eye fatigue but I am not quite sure of it)=A0 I need a wh= ite background setup


Anyone out there has a proposal of color schemes for white (or at l= east not dark) backgrounds which could share with us?

Daniel

=

2010/3/18 Carsten Dominik <carsten.dominik@gmail.= com>

On Mar 16, 2010, at 6:17 PM, Daniel Martins wrote:

I found a "minor" bug in cd-colors.el


I use a variation of background/foreground according to day/night
environments as suggested in

http:/= /www.jurta.org/en/emacs/dotemacs

and which I reproduce below

But using cd-colors and the day option which means

=A0(set-background-color "white")
=A0(set-foreground-color "black")

I notice that the face org-hide remains black.

I think that many of these faces will not work properly with a white backgr= ound - they are all only for a dark background. =A0I would have thought tha= t the entire scheme is unusable with white.

- Carsten



As I use



(setq org-hide-leading-stars t)


this is not quite convenient.

So I commented the line of org-hide in cd-colors and everything worked fine= !

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
=A0 =A0 =A0`(org-tag ((t (:foreground ,tag))))
;; =A0 =A0 =A0 `(org-hide ((t (:foreground "#191919"))))
=A0 =A0 =A0`(org-todo ((t (:background ,todo-bg :foreground "white&qu= ot; ,@box))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Daniel

PS here is the text of my .emacs that I commented above

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;; colors

(defun my-colors-light (&optional frame)
=A0"Set colors suitable for working in light environments,
i.e. in daylight or under bright electric lamps."
=A0(interactive)
=A0(setq frame-background-mode 'light)
=A0(if frame
=A0 =A0 (select-frame frame)
=A0 (setq frame (selected-frame)))
=A0;; The color with minimal eye fatigue in light environments
=A0;; is "AntiqueWhite3" (RGB: 205 192 176),
=A0;; (set-background-color "AntiqueWhite3")
=A0(set-background-color "white")
=A0(set-foreground-color "black")
=A0(when (facep 'region)
=A0 (set-face-background 'region "DarkGrey" frame))
=A0(when (facep 'fringe)
=A0 (set-face-background 'fringe (face-background 'default) frame)=
=A0 (set-face-foreground 'fringe (face-foreground 'default) frame)= )
=A0;; When started Emacs under root, warn by red color in the modeline
=A0(when (and (facep 'mode-line)
=A0 =A0 =A0 =A0 =A0 =A0(file-exists-p "/root")
=A0 =A0 =A0 =A0 =A0 =A0(file-writable-p "/root"))
=A0 (set-face-background 'mode-line "firebrick")))

(define-key global-map [f6 ?c ?d] 'my-colors-light) ;; c color d day
(defun my-colors-dark (&optional frame)
=A0"Set colors suitable for working in the darkness without electricit= y."
=A0(interactive)
=A0(setq frame-background-mode 'dark)
=A0(if frame
=A0 =A0 (select-frame frame)
=A0 (setq frame (selected-frame)))
=A0(set-background-color "black")
=A0(set-foreground-color "DarkGrey")
=A0(when (facep 'region)
=A0 (set-face-background 'region "DimGray" frame))
=A0(when (facep 'fringe)
=A0 (set-face-background 'fringe (face-background 'default) frame)=
=A0 (set-face-foreground 'fringe (face-foreground 'default) frame)= ))

(define-key global-map [f6 ?c ?n] 'my-colors-dark) ;; c color n night
;; Automatically switch to dark background after sunset
;; and to light background after sunrise.
;; (Note that `calendar-latitude' and `calendar-longitude'
;; =A0should be set before calling the `solar-sunrise-sunset')
(defun my-colors-set (&optional frame)
=A0(interactive)
=A0(require 'solar)
=A0(if (and calendar-latitude calendar-longitude calendar-time-zone)
=A0 =A0 (let* ((l (solar-sunrise-sunset (calendar-current-date)))
=A0 =A0 =A0 =A0 =A0 =A0(sunrise-string (apply 'solar-time-string (car = l)))
=A0 =A0 =A0 =A0 =A0 =A0(sunset-string (apply 'solar-time-string (car (= cdr l))))
=A0 =A0 =A0 =A0 =A0 =A0(current-time-string (format-time-string "%H:%= M")))
=A0 =A0 =A0 (if (or (string-lessp current-time-string sunrise-string)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 (string-lessp sunset-string current-time-strin= g))
=A0 =A0 =A0 =A0 =A0 (my-colors-dark frame)
=A0 =A0 =A0 =A0 (my-colors-light frame))
=A0 =A0 =A0 (if (and (boundp 'my-sunset-timer) =A0(timerp my-sunset-ti= mer))
=A0 =A0 =A0 =A0 =A0 (cancel-timer my-sunset-timer))
=A0 =A0 =A0 (if (and (boundp 'my-sunrise-timer) (timerp my-sunrise-tim= er))
=A0 =A0 =A0 =A0 =A0 (cancel-timer my-sunrise-timer))
=A0 =A0 =A0 (setq my-sunset-timer =A0(run-at-time sunset-string =A0(* 60 6= 0 24)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 'my-colors-dark))
=A0 =A0 =A0 (setq my-sunrise-timer (run-at-time sunrise-string (* 60 60 24= )
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 'my-colors-light)))))


(my-colors-set)
(add-to-list 'after-make-frame-functions 'my-colors-set)






2010/3/9 Carsten Dominik <carsten.dominik@gmail.com>:

On Mar 7, 2010, at 7:51 PM, Manuel Amador wrote:

Carsten,

Can we get a copy of the color configuration you are using?

-- Manuel

Yes, I have put my color config here:

http://orgmod= e.org/cd-colors.el

This started as a copy of Peter Jones config and was then edited and hacked=
- which is why it may not be in the most convenient shape. =A0Feel free to<= br> package it up nicely and send me a better version.

You also need something like this, adapted to your todo keywords.

(setq org-todo-keyword-faces
=A0 =A0 '(("SDMB" . cd-org-someday-kwd-face)
=A0 =A0 =A0 ("STARTED" . cd-org-started-kwd-face)
=A0 =A0 =A0 ("STRT" . cd-org-started-kwd-face)
=A0 =A0 =A0 ("WAITING" . cd-org-waiting-kwd-face)
=A0 =A0 =A0 ("WAIT" . cd-org-waiting-kwd-face)
=A0 =A0 =A0 ("DELG" . cd-org-delegated-kwd-face)
=A0 =A0 =A0 ("PROJ" . cd-org-project-kwd-face)
=A0 =A0 =A0 ("DONE" . cd-org-done-kwd-face)
=A0 =A0 =A0 ("PRDN" . cd-org-done-kwd-face)
=A0 =A0 =A0 ("PRCL" . cd-org-cancelled-kwd-face)
=A0 =A0 =A0 ("CNCL" . cd-org-cancelled-kwd-face)
=A0 =A0 =A0 ("PRCN" . cd-org-cancelled-kwd-face)
=A0 =A0 =A0 ("TODO" . cd-org-todo-kwd-face)
=A0 =A0 =A0 ("SELECTED" . cd-org-todo-kwd-face)
=A0 =A0 =A0 ("INVITED" . cd-org-waiting-kwd-face)
=A0 =A0 =A0 ("SCHEDULED" . cd-org-done-kwd-face)
=A0 =A0 =A0 ("DECLINED" . cd-org-cancelled-kwd-face)))


Cheers!

- Carsten


On Sun, Mar 7, 2010 at 7:39 AM, Carsten Dominik
<carsten.= dominik@gmail.com> wrote:

On Mar 7, 2010, at 1:50 PM, Tom wrote:

Stefan Vollmar <vollmar <at> nf.mpg.de> writes:


Hallo,

we proudly present:

"Emacs Org-mode: Organizing a Scientist's Life and Work"


I noticed the org color config in the talk was much
catchier (e.g. the keywords with bgcolor) than in the default org
config. It would be a good idea to make org more appealing by
coming up with a sexier color scheme. The appearance of org on
the main page of orgmode.o= rg is very spartan and can be a turn
off for newbies who are used to applications with a more
elaborate visual design.

I think a better choice of default colors could improve the first
impression a bit. Maybe people could send to the list screenshots
of their config and one of the better ones could be used as a new
default.

The problem I see here is that if a new user downloads Emacs,
it will have white background and only default colors.

I could of course make the screenshot on orgmode.org with my
color scheme[1], but then new users would not like the first
impression they get when they download emacs and install Org.

I am interested in a discussion about how to handle this issue.

- Carsten

[1] The color scheme is based on the scheme by Peter Jones, who
=A0in particular came up with the idea to make the TODO keywords look
=A0like buttons. =A0I use that idea, but with different colors. =A0The
=A0exact colors were not my creation, because I am really not talended
=A0in this area. =A0But I agree they look great - they were selected
=A0by the same designer who created the special logo used on all
=A0our spreadshirt shop items...



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode




--
Manuel

- Carsten





_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten




--001485f6cb28d607300482f11c72-- --===============2019350330== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2019350330==--