Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I have added a lisp sub-directory, added it to the load-path and moved blabla.el to it. C-h v load-path shows ~/.emacs.d/lisp as the first directory. However when starting emacs I still get |File is missing: Cannot open load file, No such file or directory, /root/blabla.el What am I missing? Commented Sep 9, 2023 at 6:21
  • I'm guessing you're still using load-file which hasn't changed its behaviour since I described it. Commented Sep 9, 2023 at 8:31
  • Oops. You're correct. Many thanks. I'm new to all this. I thought you needed to 'load-file' rather than 'load'. Commented Sep 9, 2023 at 8:44
  • All of the functions for loading files ultimately call load, so anything that you can do with the other functions you can also do with load (depending on the arguments you pass). There's no harm in using one of the other functions if its behaviour is actually what you want, but in lisp code you can always use load directly. Commented Sep 9, 2023 at 10:08