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