Let’s say I have my own elisp code in ~/bin/hello.el.
The ~/.emacs file has the following code to run hello.el at startup.
(add-to-list 'load-path "~/bin/elisp")
(require 'hello)
But, I get the following error message.
Warning (initialization): An error occurred while loading `/Users/smcho/.emacs’:
error: Required feature `hello’ was not provided
What’s wrong with this?
Does hello.el provide hello? It should start with
(provide 'hello). See the elisp manual. Does(load "hello.el")work?