[Top][All Lists]

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

Re: load color-theme when start emacs

From: Stefan Husmann
Subject: Re: load color-theme when start emacs
Date: Sat, 19 Mar 2011 20:33:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110307 Lanikai/3.1.9

Am 19.03.2011 14:06, schrieb Deniz Dogan:
> 2011/3/19 Pedro Costa <address@hidden>:
>> 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)
  (setq color-theme-is-global t)
;; /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

reply via email to

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