emacs-devel
[Top][All Lists]
Advanced

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

Re: relative load-file


From: Tassilo Horn
Subject: Re: relative load-file
Date: Wed, 11 Nov 2009 19:35:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Rocky Bernstein <address@hidden> writes:

Hi Rocky!

> For developing multi-file emacs packages, it would be helpful to have
> something akin to require-relative in Ruby 1.9. That is, one wants to
> load an Emacs Lisp file relative the file that issues the load which
> is often in the same directory or a nearby directory.

`load-file' accepts relative paths.

Let's say your project looks like

      foo/foo.el
      foo/misc/foo-misc.el

then a (load-file "misc/foo-misc.el") in foo.el should work.

Bye,
Tassilo




reply via email to

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