all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: load color-theme when start emacs
Date: Sat, 19 Mar 2011 08:14:05 -0700	[thread overview]
Message-ID: <AANLkTimYOPRSOGVSP43Hc1hccBfZ=TaGv6i=u_qWVWGL@mail.gmail.com> (raw)
In-Reply-To: <AANLkTik=+=Ly2qKTLW_nZaz0XebfBL99ftDkuDUnKnW0@mail.gmail.com>

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	other threads:[~2011-03-19 15:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-03-19 19:33   ` Stefan Husmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTimYOPRSOGVSP43Hc1hccBfZ=TaGv6i=u_qWVWGL@mail.gmail.com' \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.