all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Francesco Groccia <frgroccia@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: custom-theme-load-path and package system
Date: Wed, 4 Sep 2013 10:14:51 +0200	[thread overview]
Message-ID: <5226ebfe.056c0e0a.0f88.ffffb3f8@mx.google.com> (raw)
In-Reply-To: <87hae27y3a.fsf@gmail.com>

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.



      reply	other threads:[~2013-09-04  8:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30  9:16 custom-theme-load-path and package system F. Gr.
2013-09-01 19:55 ` Alex Kost
2013-09-02 16:02   ` Francesco Groccia
2013-09-03 14:56     ` Alex Kost
2013-09-04  8:14       ` Francesco Groccia [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

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

  git send-email \
    --in-reply-to=5226ebfe.056c0e0a.0f88.ffffb3f8@mx.google.com \
    --to=frgroccia@gmail.com \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.