all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* load color-theme when start emacs
@ 2011-03-19 12:33 Pedro Costa
  2011-03-19 13:06 ` Deniz Dogan
  0 siblings, 1 reply; 4+ messages in thread
From: Pedro Costa @ 2011-03-19 12:33 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I would like to load a color-theme when I start emacs in X11. I've put
this in .emacs, but it won't work.

[code]
(require 'color-theme)
if(window-system
   (setq color-theme-is-global t)
   (color-theme-midnight))
[/code]

How can I load this theme when I start emacs?


-- 
Pedro



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

* Re: load color-theme when start emacs
  2011-03-19 12:33 load color-theme when start emacs Pedro Costa
@ 2011-03-19 13:06 ` Deniz Dogan
  2011-03-19 15:14   ` suvayu ali
  2011-03-19 19:33   ` Stefan Husmann
  0 siblings, 2 replies; 4+ messages in thread
From: Deniz Dogan @ 2011-03-19 13:06 UTC (permalink / raw)
  To: Pedro Costa; +Cc: help-gnu-emacs

2011/3/19 Pedro Costa <psdc1978@gmail.com>:
> Hi,
>
> I would like to load a color-theme when I start emacs in X11. I've put
> this in .emacs, but it won't work.
>
> [code]
> (require 'color-theme)
> if(window-system
>   (setq color-theme-is-global t)
>   (color-theme-midnight))
> [/code]
>
> How can I load this theme when I start emacs?
>

I don't use color-theme, but I believe this is what you mean:

(require 'color-theme)
(when window-system
  (setq color-theme-is-global t)
  (color-theme-midnight))

-- 
Deniz Dogan



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

* Re: load color-theme when start emacs
  2011-03-19 13:06 ` Deniz Dogan
@ 2011-03-19 15:14   ` suvayu ali
  2011-03-19 19:33   ` Stefan Husmann
  1 sibling, 0 replies; 4+ messages in thread
From: suvayu ali @ 2011-03-19 15:14 UTC (permalink / raw)
  To: Emacs mailing list

On Sat, Mar 19, 2011 at 6:06 AM, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:
> 2011/3/19 Pedro Costa <psdc1978@gmail.com>:
>> Hi,
>>
>> I would like to load a color-theme when I start emacs in X11. I've put
>> this in .emacs, but it won't work.
>>
>> [code]
>> (require 'color-theme)
>> if(window-system
>>   (setq color-theme-is-global t)
>>   (color-theme-midnight))
>> [/code]
>>
>> How can I load this theme when I start emacs?
>>
>
> I don't use color-theme, but I believe this is what you mean:
>
> (require 'color-theme)
> (when window-system
>  (setq color-theme-is-global t)
>  (color-theme-midnight))
>

That should be enough. This is my setup

https://github.com/suvayu/.emacs.d/blob/master/init.el#L99

-- 
Suvayu

Open source is the future. It sets us free.



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

* Re: load color-theme when start emacs
  2011-03-19 13:06 ` Deniz Dogan
  2011-03-19 15:14   ` suvayu ali
@ 2011-03-19 19:33   ` Stefan Husmann
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Husmann @ 2011-03-19 19:33 UTC (permalink / raw)
  To: help-gnu-emacs

Am 19.03.2011 14:06, schrieb Deniz Dogan:
> 2011/3/19 Pedro Costa <psdc1978@gmail.com>:
>> Hi,
>>
>> I would like to load a color-theme when I start emacs in X11. I've put
>> this in .emacs, but it won't work.
>>
>> [code]
>> (require 'color-theme)
>> if(window-system
>>   (setq color-theme-is-global t)
>>   (color-theme-midnight))
>> [/code]
>>
>> How can I load this theme when I start emacs?
>>
> I don't use color-theme, but I believe this is what you mean:
>
> (require 'color-theme)
> (when window-system
>   (setq color-theme-is-global t)
>   (color-theme-midnight))
>
I have

;; color-theme
(when window-system
  (require 'color-theme)
  (color-theme-initialize)
  (setq color-theme-is-global t)
  (color-theme-deep-blue))
;; /color-theme
at the very end of my .emacs file. Without the initialization the them names like color-theme-deep-blue are unknown.

Regards Stefan



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

end of thread, other threads:[~2011-03-19 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-19 12:33 load color-theme when start emacs Pedro Costa
2011-03-19 13:06 ` Deniz Dogan
2011-03-19 15:14   ` suvayu ali
2011-03-19 19:33   ` Stefan Husmann

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.