[Top][All Lists]

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

Re: relative load-file

From: grischka
Subject: Re: relative load-file
Date: Fri, 13 Nov 2009 06:24:40 +0100
User-agent: Thunderbird (Windows/20090812)

> [...]
> 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.
> This would be easy if there were a variable like __FILE__ that Ruby
> provides.

Why would you need __FILE__ if in emacs you can type much more easily
As in
   (load (concat (file-name-directory #$) "extra-stuff"))

--- grischka

reply via email to

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