help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: load color-theme when start emacs


From: suvayu ali
Subject: Re: load color-theme when start emacs
Date: Sat, 19 Mar 2011 08:14:05 -0700

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]