all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: Issue with .emacs, files not loading
Date: Tue, 03 Jun 2008 22:40:35 +0100	[thread overview]
Message-ID: <4845b9f9$0$90264$14726298@news.sunsite.dk> (raw)
In-Reply-To: <67d8e703-49f0-4f42-b336-b57daca2c79d@x35g2000hsb.googlegroups.com>

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


  reply	other threads:[~2008-06-03 21:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-03 14:59 Issue with .emacs, files not loading Chris Poole
2008-06-03 21:40 ` Colin S. Miller [this message]
2008-06-04  7:16   ` Sven Joachim
2008-06-04  8:47     ` Peter Dyballa
2008-06-04 17:26       ` Eli Zaretskii
2008-06-04 12:00     ` Chris Poole
2008-06-04 12:49       ` Chris Poole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4845b9f9$0$90264$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.