emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal <kaushal.modi@gmail.com>
To: Daniel Hertrich <daniel@daniel-hertrich.photo>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Color theme loading on startup
Date: Thu, 9 Jul 2015 06:34:10 -0400	[thread overview]
Message-ID: <CAFyQvY2ojRrcKh--9cEjUunTNeQnScMzQ+EQZaNsSRZ5RHiFdg@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY1656DBf2yMGO1mR+ZoA9FG6UrUJ6JuGsHek9tU6O4RLA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1827 bytes --]

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" <kaushal.modi@gmail.com> 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" <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’t 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’t. It has the same effect as without the „t nil“,
>> background color is not applied.
>>
>> Daniel
>>
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 2795 bytes --]

      reply	other threads:[~2015-07-09 10:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 12:08 Color theme loading on startup Daniel Hertrich
2015-07-08 13:06 ` Eric S Fraga
     [not found] ` <87io9u121s.fsf@turing.flintfam.org>
2015-07-09  7:44   ` Daniel Hertrich
2015-07-09 10:23     ` Kaushal
2015-07-09 10:34       ` Kaushal [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=CAFyQvY2ojRrcKh--9cEjUunTNeQnScMzQ+EQZaNsSRZ5RHiFdg@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=daniel@daniel-hertrich.photo \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).