Emacs init.el文件无法加载

时间:2012-09-01 03:07:59

标签: emacs init

当我打开emacs时,*Messages*缓冲区中会显示以下消息,并且我的init.el文件(位于~/.emacs.d/init.el)未加载。

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.   

当我google或查看emacs wiki时,我找不到有关cedet的任何有用信息。奇怪的是,当我使用M-x eval-bufferM-x load-file时,一切正常。 HOME应该是它,我正在运行版本23.3.1

在发生这种情况之前,我一直试图让jshint使用emacs,虽然我不确定这是否完全相关https://github.com/daleharvey/jshint-mode

1 个答案:

答案 0 :(得分:30)

首先删除~/.emacs文件。有关详细信息,请参阅Emacs Wiki