From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Subject: Re: Color theme loading on startup Date: Thu, 9 Jul 2015 06:34:10 -0400 Message-ID: References: <87io9u121s.fsf@turing.flintfam.org> <4C9EFBAA-34B6-417B-86E1-71CE0247C771@daniel-hertrich.photo> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114ee040bd3162051a6ecb72 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD99i-0004of-9k for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 06:34:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZD99f-0001Jo-60 for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 06:34:14 -0400 Received: from mail-yk0-x22c.google.com ([2607:f8b0:4002:c07::22c]:36006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD99f-0001JY-0T for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 06:34:11 -0400 Received: by ykey15 with SMTP id y15so36014315yke.3 for ; Thu, 09 Jul 2015 03:34:10 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Hertrich Cc: emacs-org list --001a114ee040bd3162051a6ecb72 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Daniel, I reread your answer. Looks like to are using the theme package cyberpunk ( https://github.com/n3mo/cyberpunk-theme.el ) which is compatible with load-theme. I got confused because you used the phrase "color theme". Contrary to what the install instructions say in that theme package's README page, one should not set the `custom-theme-load-path` variable WHEN you install the package using the emacs package manager (package.el) and initialize the packages using `package-initialize`. If you have set that variable using Customize, erase it using the Customize interface. Then `(load-theme 'cyberpunk t nil)` will work. Check out the below emacs.SE for more detail. http://emacs.stackexchange.com/a/2113/115 -- Kaushal Modi On Jul 9, 2015 6:23 AM, "Kaushal" wrote: > Daniel, > > What version of emacs are you on? > > color-theme is a very old style of setting themes. I believe load-theme > will not work for color themes. > > Check out this recent answer on emacs.SE for more detail: > http://emacs.stackexchange.com/a/13825/115 > > -- > Kaushal Modi > On Jul 9, 2015 3:44 AM, "Daniel Hertrich" > wrote: > >> >> > Am 09.07.2015 um 04:45 schrieb Samuel W. Flint : >> > >> > Daniel Hertrich writes: >> > >> >> Hi guys, >> >> >> >> quick question, as I don=E2=80=99t really see any root cause for this= : >> >> Whenever I try to load a color theme directly from .emacs using >> >> load-theme, e.g. >> >> >> >> (load-theme 'cyberpunk) >> > >> > Try ~(load-theme 'cyberpunk t nil)~. That should work. >> >> Unfortunately it doesn=E2=80=99t. It has the same effect as without the = =E2=80=9Et nil=E2=80=9C, >> background color is not applied. >> >> Daniel >> >> >> >> --001a114ee040bd3162051a6ecb72 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Daniel,

I reread your answer.

Looks like to are using the theme package cyberpunk ( https://github.com/n3mo/cy= berpunk-theme.el ) which is compatible with load-theme. I got confused = because you used the phrase "color theme".

Contrary to what the install instructions say in that theme = package's README page, one should not set the `custom-theme-load-path` = variable WHEN you install the package using the emacs package manager (pack= age.el) and initialize the packages using `package-initialize`.

If you have set that variable using Customize, erase it usin= g the Customize interface.

Then `(load-theme 'cyberpunk t nil)` will work.

Check out the below emacs.SE for more detail.

http:/= /emacs.stackexchange.com/a/2113/115

--
Kaushal Modi

On Jul 9, 2015 6:23 AM, "Kaushal" <= kaushal.modi@gmail.com> wr= ote:

= Daniel,

What version of emacs are you on?

color-theme is a very old style of setting themes. I believe= load-theme will not work for color themes.

Check out this recent answer on emacs.SE for more detail: http= ://emacs.stackexchange.com/a/13825/115

--
Kaushal Modi

On Jul 9, 2015 3:44 AM, "Daniel Hertrich&qu= ot; <daniel@daniel-hertrich.photo> wrote:

> Am 09.07.2015 um 04:45 schrieb Samuel W. Flint <swflint@flintfam.org>:
>
> Daniel Hertrich <daniel@daniel-hertrich.photo> writes:
>
>> Hi guys,
>>
>> quick question, as I don=E2=80=99t really see any root cause for t= his:
>> Whenever I try to load a color theme directly from .emacs using >> load-theme, e.g.
>>
>> (load-theme 'cyberpunk)
>
> Try ~(load-theme 'cyberpunk t nil)~.=C2=A0 That should work.

Unfortunately it doesn=E2=80=99t. It has the same effect as without the =E2= =80=9Et nil=E2=80=9C, background color is not applied.

Daniel



--001a114ee040bd3162051a6ecb72--