Reputation: 1065
Whenever I open emacs on a linux server I'm using I get the following message which takes up half my screen:
Warning (initialization): An error occurred while loading `/home/[my username]/.emacs':
File error: Cannot open load file, sm
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
What's happening here? I don't have any issues editing, except for this warning message in the way. How can I address this?
EDIT:
My ~/.emacs
file contains the following:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Supermongo (SM) mode stuff
;;
(require 'sm)
(setq auto-mode-alist
(append
'( ("\\.sm\\'" . sm-mode) )
auto-mode-alist)
)
Upvotes: 0
Views: 763
Reputation: 6402
Your load-path
variable is probably set missing something. You need to add a path so that the sm.el
(or sm.elc
) file can be found by emacs. Something like this at the beginning of your .emacs
file:
(add-to-list 'load-path "/path/to/directory/containing/sm.el")
Upvotes: 1