[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom-theme-load-path and package system

From: Alex Kost
Subject: Re: custom-theme-load-path and package system
Date: Tue, 03 Sep 2013 18:56:41 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Francesco Groccia (2013-09-02 20:02 +0400) wrote:

>> What is the value of your custom-theme-load-path?
> The value of my custom-theme-load-path is the following:
> '(custom-theme-load-path (quote
> ("/home/fgr/.emacs.d/elpa/zenburn-theme-20130831.739/"
> "~/.emacs.d/themes/" custom-theme-directory t)))

I suppose it's not the value, but a part of the customization section of
your .emacs. Check the value with "C-h v custom-theme-load-path RET".

What the value will be if you will not customize this variable at all?

>> How do you modify it?
> I modify it by ``M-x customize-themes''.

Do you mean "M-x customize-variable"? ...Hm, wait a minute, i think i
guessed what happens to you. You customize zenburn theme (with
"customize-themes") as well, and in your customization section you have
something like this:

 '(custom-enabled-themes (quote (zenburn)))
 '(custom-theme-load-path (quote
 "~/.emacs.d/themes/" custom-theme-directory t)))

The problem is that emacs package system is loaded after the init file,
so emacs tries to load zenburn theme before the zenburn package will add
the proper path to `custom-theme-load-path'; that's why you have to
specify this path by hand. To solve it add these 2 lines in your .emacs
before customization section (before "(custom-set-variables ...)"):

(setq package-enable-at-startup nil)

P.S.  If you just want Emacs to look at "~/.emacs.d/themes/" for
additional themes, it would be better to modify `custom-theme-directory'
instead of `custom-theme-load-path' (by customizing it or adding
(setq custom-theme-directory "~/.emacs.d/themes/") into your .emacs).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]