Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs init.el file doesn't load

Tags:

emacs

init

When I open emacs, the following messages appear in the *Messages* buffer, and my init.el file (located at ~/.emacs.d/init.el) doesn't load.

Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50cedet-common.el (source)...
Error while loading 50cedet-common: Cannot open load file: cedet-autogen
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...
Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file.el (source)...done
Loading /etc/emacs/site-start.d/50haskell-mode.el (source)...done
Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done
Loading /etc/emacs/site-start.d/51speedbar.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.   

I can't find any helpful information about cedet when I google it or look on the emacs wiki. Oddly, when I use M-x eval-buffer or M-x load-file, everything works fine. HOME is what it should be, and I'm running version 23.3.1.

I had been trying to get jshint working with emacs before this happened, though I'm not sure if that's at all relevant https://github.com/daleharvey/jshint-mode.

like image 461
Justin Blank Avatar asked Sep 01 '12 03:09

Justin Blank


People also ask

How do I reload Emacs init?

You can use the command load-file ( M-x load-file , then press return twice to accept the default filename, which is the current file being edited). You can also just move the point to the end of any sexp and press C-x C-e to execute just that sexp.

Which init file is Emacs using?

Traditionally, file ~/. emacs is used as the init file, although Emacs also looks at ~/. emacs. el , ~/.

Where is Emacs init file located?

Emacs normally finds your init file in a location under your home directory. See The Emacs Initialization File. Emacs looks for your init file using the filenames ~/. emacs.

How do I create a .Emacs file?

To create a new file, use Control-X-Control-F, just as if the file already existed. When emacs asks you for the file name, type in the name you want your new file to have, and emacs will create the file, and display an empty buffer for you to type in. Emacs will perform file name completion for you.


1 Answers

Remove the ~/.emacs file first. See Emacs Wiki for more detail.

like image 141
hbin Avatar answered Sep 28 '22 06:09

hbin