From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Davison Newsgroups: gmane.emacs.help Subject: Re: Trying to install color-theme on emacs 23.1 Date: Sat, 03 Apr 2010 08:37:57 -0400 Message-ID: <87tyrsemoq.fsf@stats.ox.ac.uk> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1270298319 29014 80.91.229.12 (3 Apr 2010 12:38:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2010 12:38:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: hap 497 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 03 14:38:35 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny2cU-0001ws-Qu for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 14:38:35 +0200 Original-Received: from localhost ([127.0.0.1]:45924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny2cT-0005qk-WB for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Apr 2010 08:38:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ny2c1-0005qP-9M for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 08:38:05 -0400 Original-Received: from [140.186.70.92] (port=58577 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ny2bz-0005q2-Px for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 08:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ny2by-0003ZU-3Y for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 08:38:03 -0400 Original-Received: from markov.stats.ox.ac.uk ([163.1.210.1]:61072) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny2bx-0003ZO-Qp for help-gnu-emacs@gnu.org; Sat, 03 Apr 2010 08:38:02 -0400 Original-Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id o33Cc0HI025775; Sat, 3 Apr 2010 13:38:00 +0100 (BST) Original-Received: by blackcap.stats.ox.ac.uk (Postfix, from userid 5158) id 033F63201D; Sat, 3 Apr 2010 13:37:59 +0100 (BST) In-Reply-To: (hap's message of "Thu, 1 Apr 2010 23:53:00 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72587 Archived-At: hap 497 writes: > Hi, > > I have compiled emacs 23.1 on ubuntu. And I am trying to color-theme > (6.6.0) from > http://www.nongnu.org/color-theme/#sec5 > > I have copied color-theme.el to ~/bin and have added these .emacs > ; theme > (load-file "/home/hap/bin/color-theme.el") > (require 'color-theme) Hi Hap, I don't think you have followed the installation instructions correctly (to be fair, they're not very clear on the webpage you linked to). It's not enough to copy just color-theme.el, you need the entire color-theme-6.6.0 directory. So get rid of ~/bin/color-theme.el and put the whole directory in ~/bin and use (add-to-list 'load-path "~/bin/color-theme-6.6.0") (require 'color-theme) (eval-after-load "color-theme" '(progn (color-theme-initialize) (color-theme-charcoal-black))) Dan > > But I get this error when i run emacs -debug-init: > > =CD=82Debugger entered--Lisp error: (wrong-type-argument stringp nil) > file-name-directory(nil) > (concat (file-name-directory (locate-library "color-theme")) "/themes") > (directory-files (concat (file-name-directory ...) "/themes") t > "^color-theme") > eval((directory-files (concat (file-name-directory ...) "/themes") t > "^color-theme")) > custom-initialize-reset(color-theme-libraries (directory-files > (concat (file-name-directory ...) "/themes") t "^color-theme")) > custom-declare-variable(color-theme-libraries (directory-files > (concat (file-name-directory ...) "/themes") t "^color-theme") "A list > of files, which will be loaded in color-theme-initialize depending\non > `color-theme-load-all-themes' value. \nThis allows a user to prune the > default color-themes (which can take a while\nto load)." :type (repeat > string) :group color-theme) > (defcustom color-theme-libraries (directory-files (concat ... > "/themes") t "^color-theme") "A list of files, which will be loaded in > color-theme-initialize depending\non `color-theme-load-all-themes' > value. \nThis allows a user to prune the default color-themes (which > can take a while\nto load)." :type (quote (repeat string)) :group > (quote color-theme)) > eval-buffer(#> nil "/home/hap/bin/color-theme.el" > nil t) ; Reading at buffer position 8867 > load-with-code-conversion("/home/hap/bin/color-theme.el" > "/home/hap/bin/color-theme.el" nil nil) > > I have attached the color-theme.el. > > Can you please tell me how can I fix my problem? > > Thank you.