开发者

elisp function that returns the current file being interpreted

Isn't there a function that returns the current file being interpreted? That is, if I call it in foo.el, it will return "foo.el"? The use case is in startup files. No, I don't want u开发者_开发问答ser-init-file, but it is analogous to that.

Surely this has been asked before, but I cannot find the answer anywhere, huh...


Ah! It's called load-file-name.

I had already been using it in one of my init files...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜