Skip to content

No such file or directory #1195

Answered by cyrialize
Vm900 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's a good write up of how load, load-file, autoload, and require works: http://ergoemacs.org/emacs/elisp_library_system.html

Basically, with load it first tries to find a file by going through the load-path and looking for a file that has that file name and ends with elc, then el and then just the file name.

So, it's looking for:

  • company-mode.elc
  • company-mode.el
  • company-mode

The reason why this doesn't work is because the base company-mode file is just company. So, to fix this you can do (load 'company). It's better to use require though, so I'd recommend (require 'company)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yugaego
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #835 on August 25, 2021 22:10.