help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing matlab mode under Windows XP


From: Kevin Rodgers
Subject: Re: Installing matlab mode under Windows XP
Date: Wed, 22 Nov 2006 09:29:23 -0700
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Glenn Morris wrote:
Kevin Rodgers wrote:

Then create a subdirs.el file in the directory (e.g. ~/emacs/subdirs.el)
with these contents:

(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
     (normal-top-level-add-subdirs-to-load-path))

Will that actually do anything in this case? I thought that because of
the order in which Emacs does things at startup, any additions made to
load-path in ~/.emacs don't get scanned for subdirs.el files. At least
this was the case three years ago:

http://lists.gnu.org/archive/html/emacs-devel/2003-04/msg00315.html

Indeed, a simple experiment shows you're correct.  Sorry about that!

So OP has to do it explicitly in ~/.emacs:

(setq load-path (cons "~/emacs" load-path))

(let ((default-directory "~/emacs"))
  (normal-top-level-add-subdirs-to-load-path))

--
Kevin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]