unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: a better face for your eyes
  2006-04-01 14:14 a better face for your eyes Gary Weselle
@ 2006-03-31 20:20 ` Thien-Thi Nguyen
  2006-04-01 20:14   ` Gary Weselle
  0 siblings, 1 reply; 7+ messages in thread
From: Thien-Thi Nguyen @ 2006-03-31 20:20 UTC (permalink / raw)


"Gary Weselle" <weselle_g@hotmain.com> writes:

> Any body with a better solution.

there are many "themes" packages, some quite fancy.  below is a simple
one.  i load this on startup, and call `set-theme' from ~/.emacs, which
is early enough to make the mysterious (to me) font-lock machinery DTRT
for things like `font-lock-function-face', etc.  back when i was loading
it later in the session, sometimes font-lock would make disturbing color
choices.

thi

_________________________________________________
;;; set-theme.el
;;;
;;; Rel:v-1-55
;;;
;;; Copyright (C) 2000,2002,2003,2004,2006 Thien-Thi Nguyen
;;; This file is part of ttn's personal elisp library, released under GNU
;;; GPL with ABSOLUTELY NO WARRANTY.  See the file COPYING for details.
;;;
;;; Description: Select an appearance configuration.

(defvar themes '(;;name       bg    fg        m-fg    m-bg (optional)
                 (classic-ttn \#a85 black     white   black)
                 (new-earthy  black sienna    gray30)
                 (zzzzzzzzzz  black darkgreen black)
                 (caffeine    black yellow    white)
                 (polar       white black     white   black)
                 (dream       black cyan      white   blue)
                 (fuori-fuso  black green     magenta)
                 (vt220       black goldenrod gray30))
  "List w/ elements of form:
 \(NAME BACKGROUND FOREGROUND MODELINE-FOREGROUND [MODELINE-BACKGROUND]\)
If MODELINE-BACKGROUND is not specified, it defaults to BACKGROUND.
All elements are symbols.  Use `\\#RGB' to specify a color using RGB components.")

;;;###autoload
(defun set-theme (name)
  "Select appearance configuration NAME.  (See variable `themes'.)"
  (interactive (list (completing-read "Theme: "
                                      (mapcar 'list
                                              (mapcar 'symbol-name
                                                      (mapcar 'car
                                                              themes)))
                                      nil       ;;; predicate
                                      t)))      ;;; require-match
  (when (symbolp name)
    (setq name (symbol-name name)))
  (if (string= "" name)
      (message "(%d themes, none chosen)"
               (and
                (describe-variable 'themes)
                (length themes)))
    (apply (lambda (bg fg m-fg &optional m-bg)
             (set-face-foreground 'default fg)
             (set-face-background 'default bg)
             (let ((v [set-face-background set-face-foreground])
                   (i (if (face-inverse-video-p 'mode-line) 0 1)))
               (funcall (aref v      i)  'mode-line m-fg)
               (funcall (aref v (- 1 i)) 'mode-line (or m-bg bg))))
           (mapcar 'symbol-name
                   (cdr (assq (intern name) themes))))))

(provide 'set-theme)

;;; set-theme.el ends here

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

* RE: a better face for your eyes
  2006-04-01 20:14   ` Gary Weselle
@ 2006-04-01  1:47     ` Drew Adams
  2006-04-03  7:28     ` Bastien
  1 sibling, 0 replies; 7+ messages in thread
From: Drew Adams @ 2006-04-01  1:47 UTC (permalink / raw)


    is there a web site with lots of screenshots of different
    themes and their corresponding .el(s)

See http://www.emacswiki.org/cgi-bin/wiki/ColorTheme. It has lots of info on
color themes and links to a couple of such gallery pages.

BTW, there is no reason to quote an entire post just to add a one-line
question like this. The question alone is sufficient in this case;
otherwise, provide only a little of the previous post for context.

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

* a better face for your eyes
@ 2006-04-01 14:14 Gary Weselle
  2006-03-31 20:20 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Weselle @ 2006-04-01 14:14 UTC (permalink / raw)


Hi

I find it a lot better for my eyes with so many hours spent in fort of emacs
in different mode to have the back ground dark and not white, I tried black
and it seams to help a lot. But having all the other colors that are used in
different mode it makes it un-comfortable to read.

Any body with a better solution.



Thanks

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

* Re: a better face for your eyes
  2006-03-31 20:20 ` Thien-Thi Nguyen
@ 2006-04-01 20:14   ` Gary Weselle
  2006-04-01  1:47     ` Drew Adams
  2006-04-03  7:28     ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Gary Weselle @ 2006-04-01 20:14 UTC (permalink / raw)



"Thien-Thi Nguyen" <ttn@glug.org> wrote in message
news:7e7j6atlhr.fsf@ada2.unipv.it...
> "Gary Weselle" <weselle_g@hotmain.com> writes:
>
> > Any body with a better solution.
>
> there are many "themes" packages, some quite fancy.  below is a simple
> one.  i load this on startup, and call `set-theme' from ~/.emacs, which
> is early enough to make the mysterious (to me) font-lock machinery DTRT
> for things like `font-lock-function-face', etc.  back when i was loading
> it later in the session, sometimes font-lock would make disturbing color
> choices.
>
> thi
>
> _________________________________________________
> ;;; set-theme.el
> ;;;
> ;;; Rel:v-1-55
> ;;;
> ;;; Copyright (C) 2000,2002,2003,2004,2006 Thien-Thi Nguyen
> ;;; This file is part of ttn's personal elisp library, released under GNU
> ;;; GPL with ABSOLUTELY NO WARRANTY.  See the file COPYING for details.
> ;;;
> ;;; Description: Select an appearance configuration.
>
> (defvar themes '(;;name       bg    fg        m-fg    m-bg (optional)
>                  (classic-ttn \#a85 black     white   black)
>                  (new-earthy  black sienna    gray30)
>                  (zzzzzzzzzz  black darkgreen black)
>                  (caffeine    black yellow    white)
>                  (polar       white black     white   black)
>                  (dream       black cyan      white   blue)
>                  (fuori-fuso  black green     magenta)
>                  (vt220       black goldenrod gray30))
>   "List w/ elements of form:
>  \(NAME BACKGROUND FOREGROUND MODELINE-FOREGROUND [MODELINE-BACKGROUND]\)
> If MODELINE-BACKGROUND is not specified, it defaults to BACKGROUND.
> All elements are symbols.  Use `\\#RGB' to specify a color using RGB
components.")
>
> ;;;###autoload
> (defun set-theme (name)
>   "Select appearance configuration NAME.  (See variable `themes'.)"
>   (interactive (list (completing-read "Theme: "
>                                       (mapcar 'list
>                                               (mapcar 'symbol-name
>                                                       (mapcar 'car
>                                                               themes)))
>                                       nil       ;;; predicate
>                                       t)))      ;;; require-match
>   (when (symbolp name)
>     (setq name (symbol-name name)))
>   (if (string= "" name)
>       (message "(%d themes, none chosen)"
>                (and
>                 (describe-variable 'themes)
>                 (length themes)))
>     (apply (lambda (bg fg m-fg &optional m-bg)
>              (set-face-foreground 'default fg)
>              (set-face-background 'default bg)
>              (let ((v [set-face-background set-face-foreground])
>                    (i (if (face-inverse-video-p 'mode-line) 0 1)))
>                (funcall (aref v      i)  'mode-line m-fg)
>                (funcall (aref v (- 1 i)) 'mode-line (or m-bg bg))))
>            (mapcar 'symbol-name
>                    (cdr (assq (intern name) themes))))))
>
> (provide 'set-theme)
>
> ;;; set-theme.el ends here

is there a web site with lots of screenshots of different themes and their
corresponding .el(s)

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

* Re: a better face for your eyes
  2006-04-01 20:14   ` Gary Weselle
  2006-04-01  1:47     ` Drew Adams
@ 2006-04-03  7:28     ` Bastien
  2006-04-04  1:34       ` Rares Vernica
  2006-04-04 22:20       ` Xavier Maillard
  1 sibling, 2 replies; 7+ messages in thread
From: Bastien @ 2006-04-03  7:28 UTC (permalink / raw)


"Gary Weselle" <weselle_g@hotmain.com> writes:

> is there a web site with lots of screenshots of different themes and their
> corresponding .el(s)

Have a look at this URL:
http://www.flickr.com/groups/emacs/

You can upload screenshots of your own, since this group is open to
contribution.

regards,

-- 
Bastien

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

* Re: a better face for your eyes
  2006-04-03  7:28     ` Bastien
@ 2006-04-04  1:34       ` Rares Vernica
  2006-04-04 22:20       ` Xavier Maillard
  1 sibling, 0 replies; 7+ messages in thread
From: Rares Vernica @ 2006-04-04  1:34 UTC (permalink / raw)


Thanks a lot,
Ray

Bastien wrote:
> "Gary Weselle" <weselle_g@hotmain.com> writes:
> 
>> is there a web site with lots of screenshots of different themes and their
>> corresponding .el(s)
> 
> Have a look at this URL:
> http://www.flickr.com/groups/emacs/
> 
> You can upload screenshots of your own, since this group is open to
> contribution.
> 
> regards,
> 

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

* Re: a better face for your eyes
  2006-04-03  7:28     ` Bastien
  2006-04-04  1:34       ` Rares Vernica
@ 2006-04-04 22:20       ` Xavier Maillard
  1 sibling, 0 replies; 7+ messages in thread
From: Xavier Maillard @ 2006-04-04 22:20 UTC (permalink / raw)
  Cc: help-gnu-emacs

   From: Bastien <bastien@xxx.fr>

   "Gary Weselle" <weselle_g@hotmain.com> writes:

   > is there a web site with lots of screenshots of different themes and their
   > corresponding .el(s)

   Have a look at this URL:
   http://www.flickr.com/groups/emacs/

   You can upload screenshots of your own, since this group is open to
   contribution.

Oh I forgot it ! I *have to* upload things there. Thank you Bastien for having
made it come into my brain :)

Xavier

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

end of thread, other threads:[~2006-04-04 22:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01 14:14 a better face for your eyes Gary Weselle
2006-03-31 20:20 ` Thien-Thi Nguyen
2006-04-01 20:14   ` Gary Weselle
2006-04-01  1:47     ` Drew Adams
2006-04-03  7:28     ` Bastien
2006-04-04  1:34       ` Rares Vernica
2006-04-04 22:20       ` Xavier Maillard

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