From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Hertrich Subject: Color theme loading on startup Date: Wed, 8 Jul 2015 14:08:43 +0200 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_57D313E1-ED6E-4C22-8392-1ACB7ACAD138" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCo9i-0006uJ-6o for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 08:08:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCo9d-0007FI-Qm for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 08:08:50 -0400 Received: from mx02.posteo.de ([89.146.194.165]:35072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCo9d-0007ES-IZ for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 08:08:45 -0400 Received: from dovecot04.posteo.de (unknown [185.67.36.27]) by mx02.posteo.de (Postfix) with ESMTPS id 5E12825A3DC4 for ; Wed, 8 Jul 2015 14:08:44 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot04.posteo.de (Postfix) with ESMTPSA id 3mRKDC6Rb9zFpVk for ; Wed, 8 Jul 2015 14:08:43 +0200 (CEST) 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: emacs-org list --Apple-Mail=_57D313E1-ED6E-4C22-8392-1ACB7ACAD138 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi guys, quick question, as I don=E2=80=99t really see any root cause for this: =20 Whenever I try to load a color theme directly from .emacs using = load-theme, e.g. (load-theme 'cyberpunk) even if I put this line to the end of the .emacs file, the background = color of the theme is overridden by something and not applied to the = look of Emacs.=20 If I load the same theme while Emacs is running using=20 M-x load-theme RET cyberpunk RET it looks good. However, using this method I cannot persist the choice = across sessions. Any ideas what the reason could be? Also, there is=20 M-x color-theme-select which lists different themes than load-theme. Is this method better? How = to load such themes through .emacs correctly? E.g. I like the theme =E2=80=9EDeep Blue=E2=80=9C listed there, but = putting=20 (color-theme-select =E2=80=9Adeep_blue) into the .emacs file doesn=E2=80=99t have any effect. However, I don=E2=80= =99t know if that=E2=80=99s the correct lisp-compatible name of the = theme. How to know what it is? And where are new themes for this method installed to? As far as I = understood, both methods take different format theme files?=20 Thanks! Daniel --Apple-Mail=_57D313E1-ED6E-4C22-8392-1ACB7ACAD138 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 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)

even if I put this line to the end of = the .emacs file, the background color of the theme is overridden by = something and not applied to the look of Emacs. 
If I load the same theme while Emacs is running = using 

M-x load-theme RET cyberpunk RET

it looks good. However, using this = method I cannot persist the choice across sessions.

Any ideas what the = reason could be?



Also, there is 

M-x = color-theme-select

which lists different themes than load-theme. Is this method = better? How to  load such themes through .emacs = correctly?
E.g. I like the theme =E2=80=9EDeep = Blue=E2=80=9C listed there, but putting 
(color-theme-select =E2=80=9Adeep_blue)
into the .emacs file doesn=E2=80=99t have any effect. = However, I don=E2=80=99t know if that=E2=80=99s the correct = lisp-compatible name of the theme. How to know what it is?
And where are new themes for this method installed to? As far = as I understood, both methods take different format theme = files? 

Thanks!
Daniel

= --Apple-Mail=_57D313E1-ED6E-4C22-8392-1ACB7ACAD138-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Color theme loading on startup Date: Wed, 8 Jul 2015 14:06:08 +0100 Message-ID: <87fv4yer3z.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCp3Y-00069t-1c for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 09:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCp3P-0006YM-U5 for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 09:06:31 -0400 Received: from mail-am1on0135.outbound.protection.outlook.com ([157.56.112.135]:7245 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCp3P-0006Xc-M5 for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 09:06:23 -0400 In-Reply-To: (Daniel Hertrich's message of "Wed, 8 Jul 2015 14:08:43 +0200") 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 On Wednesday, 8 Jul 2015 at 14:08, Daniel Hertrich wrote: > Hi guys, > > quick question, as I don=E2=80=99t really see any root cause for this: >=20=20 > Whenever I try to load a color theme directly from .emacs using load-them= e, e.g. > > (load-theme 'cyberpunk) [...] I am not sure what causes the behaviour you see but I can say that I use the following sequence to set the particular colour theme I want: (require 'color-theme) (color-theme-initialize) (color-theme-blue-sea) The second line makes all the colour themes available and you can see them all by M-x color-theme TAB. --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1260-gced= ef7 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Hertrich Subject: Re: Color theme loading on startup Date: Thu, 9 Jul 2015 09:44:05 +0200 Message-ID: <4C9EFBAA-34B6-417B-86E1-71CE0247C771@daniel-hertrich.photo> References: <87io9u121s.fsf@turing.flintfam.org> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD6VF-00008q-BY for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 03:44:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZD6V5-00087J-UF for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 03:44:17 -0400 Received: from mx02.posteo.de ([89.146.194.165]:58349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD6V5-000879-OE for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 03:44:07 -0400 Received: from dovecot04.posteo.de (unknown [185.67.36.27]) by mx02.posteo.de (Postfix) with ESMTPS id 7361C25AF501 for ; Thu, 9 Jul 2015 09:44:06 +0200 (CEST) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot04.posteo.de (Postfix) with ESMTPSA id 3mRqJQ14KHzFpW3 for ; Thu, 9 Jul 2015 09:44:05 +0200 (CEST) In-Reply-To: <87io9u121s.fsf@turing.flintfam.org> 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: emacs-org list > Am 09.07.2015 um 04:45 schrieb Samuel W. Flint : >=20 > Daniel Hertrich writes: >=20 >> Hi guys, >>=20 >> 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. >>=20 >> (load-theme 'cyberpunk) >=20 > 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 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:23:54 -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=94eb2c034fc80c2aaf051a6ea7de Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD8zm-0002eU-3K for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 06:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZD8zk-00059c-S4 for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 06:23:58 -0400 Received: from mail-yk0-x22b.google.com ([2607:f8b0:4002:c07::22b]:36233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD8zk-00059N-MU for emacs-orgmode@gnu.org; Thu, 09 Jul 2015 06:23:56 -0400 Received: by ykey15 with SMTP id y15so35835757yke.3 for ; Thu, 09 Jul 2015 03:23:54 -0700 (PDT) In-Reply-To: <4C9EFBAA-34B6-417B-86E1-71CE0247C771@daniel-hertrich.photo> 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 --94eb2c034fc80c2aaf051a6ea7de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 > > > > --94eb2c034fc80c2aaf051a6ea7de Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

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.stackexch= ange.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



--94eb2c034fc80c2aaf051a6ea7de-- 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--