[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom-theme-load-path and package system
From: |
Francesco Groccia |
Subject: |
Re: custom-theme-load-path and package system |
Date: |
Wed, 4 Sep 2013 10:14:51 +0200 |
Alex Kost [2013-09-03 18:56:41+0400]:
> 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.
Yes.
> Check the value with "C-h v custom-theme-load-path RET".
The value is the same as I've already posted. That is:
"
custom-theme-load-path is a variable defined in `custom.el'.
Its value is
("/home/fgr/.emacs.d/elpa/zenburn-theme-20130831.739/" "~/.emacs.d/themes/"
custom-theme-directory t)
Original value was
(custom-theme-directory t)
[...]
"
> 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-set-variables
> ...
> '(custom-enabled-themes (quote (zenburn)))
> ...
> '(custom-theme-load-path (quote
> ("/home/fgr/.emacs.d/elpa/zenburn-theme-20130831.739/"
> "~/.emacs.d/themes/" custom-theme-directory t)))
> ...
> )
That's right!
> 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)
> (package-initialize)
>
> 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).
Thank you for making yourself available.