-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
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) |
Beta Was this translation helpful? Give feedback.
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:
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)