开发者

elisp function that returns the current file being interpreted

开发者 https://www.devze.com 2022-12-18 06:17 出处:网络
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开发者_开发问答se

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

精彩评论

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