From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allan Gottlieb Newsgroups: gmane.emacs.help Subject: Re: Finding color-theme in .emacs.d Date: Thu, 11 Sep 2008 14:58:18 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221159536 2189 80.91.229.12 (11 Sep 2008 18:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 18:58:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 11 20:59:52 2008 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.50) id 1KdrOK-00041I-Cw for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 20:59:44 +0200 Original-Received: from localhost ([127.0.0.1]:47566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdrNK-0002wd-3o for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 14:58:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdrMz-0002uQ-QC for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 14:58:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdrMy-0002sD-7m for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 14:58:21 -0400 Original-Received: from [199.232.76.173] (port=59468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdrMy-0002ru-1G for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 14:58:20 -0400 Original-Received: from smtp.cs.nyu.edu ([128.122.80.33]:41217) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KdrMy-0001wU-7Z for help-gnu-emacs@gnu.org; Thu, 11 Sep 2008 14:58:20 -0400 Original-Received: from ajglap.localdomain (AJGLAP.CS.NYU.EDU [128.122.140.201]) (authenticated bits=0) by smtp.cs.nyu.edu (8.14.3/8.13.8) with ESMTP id m8BIwIKx009476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 11 Sep 2008 14:58:18 -0400 (EDT) Original-Received: by ajglap.localdomain (Postfix, from userid 1502) id E171019D931; Thu, 11 Sep 2008 14:58:18 -0400 (EDT) In-Reply-To: (Eric Lilja's message of "Thu\, 11 Sep 2008 19\:30\:28 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:57440 Archived-At: At Thu, 11 Sep 2008 19:30:28 +0200 Eric Lilja wrote: > Eric Lilja wrote: >> Hello, I encountered a problem when I tried to move my color-theme >> directory to ~/.emacs.d (can't wait for color-theme to be included >> in the official emacs btw). >> >> I have this in my .emacs-file: >> (add-to-list 'load-path "~/color-theme") >> (require 'color-theme) >> (color-theme-initialize) >> (color-theme-clarity) >> >> which works fine when color-theme is directly under ~ >> >> However, if I move it to ~/.emacs.d and update the snippet accordingly: >> (add-to-list 'load-path "~/.emacs.d/color-theme") >> (require 'color-theme) >> (color-theme-initialize) >> (color-theme-clarity) >> >> It cannot be found, why? I should place third party modes under >> .emacs.d, right? At least that's what the wiki says. :) I have it in /usr/share/emacs/site-lisp, which is already in load-path. In my .emacs I have ;; Non-std locations for elisp code ;; (setq load-path (append (list "/allan/gottlieb/share/emacs/") load-path)) (if (file-exists-p "/usr/share/emacs/site-lisp/site-gentoo.el") (load "/usr/share/emacs/site-lisp/site-gentoo")) and ;; Fancy colors ;; Use my own color-theme, starting with `dark-laptop' (require 'color-theme) (color-theme-initialize) (load-file "/allan/gottlieb/.emacs.d/ajg-color-theme-library.el") (color-theme-dark-laptop) >> I'm using emacs trunk, checkout is a few days old. I use both emacs-22 (22.1) and emacs-23 (23.0.60) with the setup above. allan