From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Kost Newsgroups: gmane.emacs.help Subject: Re: custom-theme-load-path and package system Date: Tue, 03 Sep 2013 18:56:41 +0400 Message-ID: <87hae27y3a.fsf@gmail.com> References: <20130830111619.1480f7a6@mayfly> <87k3j0b9lo.fsf@gmail.com> <5224b69d.81680e0a.273f.fffff09b@mx.google.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378220232 4094 80.91.229.3 (3 Sep 2013 14:57:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2013 14:57:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Francesco Groccia Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 03 16:57:14 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGs2b-0002K9-8e for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Sep 2013 16:57:13 +0200 Original-Received: from localhost ([::1]:46692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGs2a-0002zm-Rd for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Sep 2013 10:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGs2H-0002xB-Lr for help-gnu-emacs@gnu.org; Tue, 03 Sep 2013 10:57:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGs29-0001Yl-9Y for help-gnu-emacs@gnu.org; Tue, 03 Sep 2013 10:56:53 -0400 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:37343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGs29-0001Yb-0o for help-gnu-emacs@gnu.org; Tue, 03 Sep 2013 10:56:45 -0400 Original-Received: by mail-lb0-f179.google.com with SMTP id x18so5006298lbi.24 for ; Tue, 03 Sep 2013 07:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=DojOqk97tfDIllFD/uT77cGSS7E1otK7A6+q5XRmd6E=; b=0VSv1fH7dD63TwzCWOIuwkQT/e7rObmb0pjIy511bZgHzq+hxWiDQ1MfVu2K5M2h57 CgLy4d7XDZQiNkuOcQttpFCbcRsuzrM3Bm+ktrFG3ALDbzWAzDu6lZl+lVlEUmZ+0aAO 4wDvbM2fkr9jS4UfrwYcaf51kyDgusJLSCkwv2EL3BMYmhHuJZqRi5OhzGbv5IAbOa3/ WboT5hl3VdUbWQZekcEPkYcYVwJPWOr9c+cr23tUyHOadlLUAdDQknYqYMEOEYPP5jOd O1PP36qxr0kLq1WHnYdIdHk4p40nwcldU+3bYM6GGugE50enddt9PpX8XJQy9RIXYbJP DoHg== X-Received: by 10.152.2.74 with SMTP id 10mr2207948las.36.1378220203284; Tue, 03 Sep 2013 07:56:43 -0700 (PDT) Original-Received: from leviafan (128-70-200-170.broadband.corbina.ru. [128.70.200.170]) by mx.google.com with ESMTPSA id k6sm9201457lae.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Sep 2013 07:56:42 -0700 (PDT) In-Reply-To: <5224b69d.81680e0a.273f.fffff09b@mx.google.com> (Francesco Groccia's message of "Mon, 2 Sep 2013 18:02:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93219 Archived-At: 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-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))) ... ) 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).