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.m...@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 <swfl...@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
>>
>>
>>
>>

Reply via email to