设置emacs的主屏幕时,显示失败消息“无法保存自定义”
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/50global.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50python-guppy.el (source)...done
Loading /etc/emacs/site-start.d/50ruby1.8-elisp.el (source)...done
Loading cua-base...done
For information about GNU Emacs and the GNU system, type C-h C-a.
custom-save-all: Cannot save customizations; init file was not fully loaded
请帮忙
答案 0 :(得分:11)
如果我们查看cus-edit.el中custom-save-all
的来源,我们会发现:
(defun custom-save-all ()
"Save all customizations in `custom-file'."
(when (and (null custom-file) init-file-had-error)
(error "Cannot save customizations; init file was not fully loaded"))
因此,在加载init文件时会出现错误。尝试使用--debug-init
选项启动emacs,这使得Emacs Lisp调试器可以帮助您找到init文件中的错误。
答案 1 :(得分:2)
我在.emacs文件中错误拼写了一条路径。
请检查.emacs文件中的拼写错误。
编辑:请记住,UNIX路径区分大小写。到目前为止,这一直是我的主要错误来源。