From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: Issue with .emacs, files not loading Date: Tue, 03 Jun 2008 22:40:35 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4845b9f9$0$90264$14726298@news.sunsite.dk> References: <67d8e703-49f0-4f42-b336-b57daca2c79d@x35g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212529275 8376 80.91.229.12 (3 Jun 2008 21:41:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2008 21:41:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 23:41:56 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 1K3eGR-0004B1-7M for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2008 23:41:55 +0200 Original-Received: from localhost ([127.0.0.1]:33355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3eFe-00050r-R4 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jun 2008 17:41:06 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Icedove 1.5.0.14eol (X11/20080509) Original-Newsgroups: gnu.emacs.help In-Reply-To: <67d8e703-49f0-4f42-b336-b57daca2c79d@x35g2000hsb.googlegroups.com> Original-Lines: 54 Original-NNTP-Posting-Host: 62.56.92.15 Original-X-Trace: news.sunsite.dk DXC=eRL3oQf@8fMSi^`20K04QCYSB=nbEKnkK5l7JOAVQ`jBG1[Bg<0aH5@\VT\m5_SIbFU_42Df:PaKHTcL2h5ahoTOkF_>m>CYcVOgc7jSYA[F7IOR:K`S`6ZmM Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:159090 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:54443 Archived-At: Chris Poole wrote: > I used to have everything in one .emacs file. > > Now I've split it up into various files for different systems (I use > Mac OS X and GNU/Linux). > > This is my .emacs file: > > ;; Check to see if running on Mac OS X or some GNU/Linux distro > (defvar macosx-p (string-match "darwin" (symbol-name system-type))) > (defvar linux-p (string-match "gnu/linux" (symbol-name system-type))) > > ;; Load stuff for GNU/Linux systems only > (when linux-p > (setq load-path (append load-path (list "~/emacs/lisp/linux")))) > > ;; Load stuff for Mac OS X only > (when macosx-p > (setq load-path (append load-path (list "~/emacs/lisp/macosx")))) > > ;; Load OS-independant stuff > (setq load-path (append load-path (list "~/emacs/lisp/generic"))) > > ;; Load extra major modes (to top of load-path so loads first) > (setq load-path (cons "~/emacs/lisp/generic/org" load-path)) > > Inside ~/emacs/lisp/generic, I have all my settings in my-custom- > generic.el. (Not byte-compiled yet.) I also have several other files. > None of them load. Similar situation with the macosx directory, etc. > > The final loading of org-mode does load though, replacing the version > that came with Emacs. > > I can't see what I'm doing wrong -- can anyone tell me my stupid > mistake? > > Thanks. Chris, From the variable's documentation *List of directories to search for files to load. Each element is a string (directory name) or nil (try default directory). Note that the elements of this list *may not* begin with "~", so you must call `expand-file-name' on them before adding them to this list. You need to expand your paths before adding them to load-path. I can't see where you are calling (load-library) to load my-custom-generic.el. HTH, Colin S. Miller