From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Poole Newsgroups: gmane.emacs.help Subject: Issue with .emacs, files not loading Date: Tue, 3 Jun 2008 07:59:09 -0700 (PDT) Organization: http://groups.google.com Message-ID: <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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212763889 23595 80.91.229.12 (6 Jun 2008 14:51:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 14:51:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 16:52:11 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 1K4dIV-0000nz-EG for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 16:52:07 +0200 Original-Received: from localhost ([127.0.0.1]:42818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4dHi-0001cz-K6 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 10:51:18 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!x35g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 194.80.32.9 Original-X-Trace: posting.google.com 1212505150 11767 127.0.0.1 (3 Jun 2008 14:59:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 3 Jun 2008 14:59:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x35g2000hsb.googlegroups.com; posting-host=194.80.32.9; posting-account=GnnCYAoAAAA43hnIocu2etCdxgMTFJpY User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 wwwcache1.lancs.ac.uk:8080 (squid/2.6.STABLE16) Original-Xref: news.stanford.edu gnu.emacs.help:159085 X-Mailman-Approved-At: Fri, 06 Jun 2008 10:50:14 -0400 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:54511 Archived-At: 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.