Emacs无法保存自定义项 - 初始化文件未完全加载

时间:2012-03-10 22:09:18

标签: unix ubuntu emacs lisp

当我尝试检查“不再显示此屏幕”框并保存在Emacs默认启动缓冲区时,出现错误:custom-save-all: Cannot save customizations, init file not fully loaded

我的完整输出如下:

Loading 00debian-vars...
No /etc/mailname. Reverting to default...
Loading 00debian-vars...done
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/50slime.el (source)...
Loading /usr/share/emacs23/site-lisp/slime/slime-autoloads.elc...done
Loading /etc/emacs/site-start.d/50slime.el (source)...done
Loading /home/nathan/elisp/autoloads...done
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
custom-save-all: Cannot save customizations; init file was not fully loaded

我一直在修改我的.emacs文件无济于事。它看起来像这样(我想让install.el正常工作):

(load "~/elisp/autoloads" 'install)
(add-to-list 'load-path "~/elisp")
(require 'install.el)

如果我尝试C - X - C - E此代码,我会在缓冲区中出错:

Debugger entered--Lisp error: (error "Required feature `install.el' was not provided")
  require(install\.el)
  eval((require (quote install\.el)))
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
存在

~/elisp目录,这就是我的*.el文件所在的位置。所以我有点困惑,因为看起来我有正确的路径名和语法。

任何帮助都会很棒。谢谢你,Emacs的黑客们!

1 个答案:

答案 0 :(得分:7)

您需要使用:

(require 'install)

没有.el