I have the following ~/.emacs:
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(require 'highlight-symbol)
(global-set-key [(control f3)] 'highlight-symbol)
(global-set-key [f3] 'highlight-symbol-next)
(global-set-key [(shift f3)] 'highlight-symbol-prev)
(global-set-key [(meta f3)] 'highlight-symbol-query-replace)
Then I added the file highlight-symbol.el to my ~/.emacs.d folder.
However when I start emacs I get:
Warning (initialization): An error occurred while loading ‘~/.emacs’:
File error: Cannot open load file, No such file or directory, highlight-symbol
I am new to emacs, what am I doing wrong?