解决 Ubuntu 启动 emacs 时出现警告的问题

解决 Ubuntu 启动 emacs 时出现警告的问题

我的 Ubuntu 中的 Emacs 总是显示下面的警告,这很烦人。

Warning (initialization): An error occurred while loading ‘/home/AROT/.emacs.d/init.el’:

error: Key sequence RET o starts with non-prefix key RET

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.

然后我按照说明使用命令启动 emacsemacs --debug-init并看到以下信息:

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "tex-site")
  require(tex-site)
  eval-buffer(#<buffer  *load*-267398> nil "/home/AROT/.emacs.d/elpa/auctex-11.88.6/auctex-autoloads.el" nil t)  ; Reading at buffer position 10037
  load-with-code-conversion("/home/AROT/.emacs.d/elpa/auctex-11.88.6/auctex-autoloads.el" "/home/AROT/.emacs.d/elpa/auctex-11.88.6/auctex-autoloads.el" nil t)
  load("/home/AROT/.emacs.d/elpa/auctex-11.88.6/auctex-autoloads" nil t)
  package--activate-autoloads-and-load-path(#s(package-desc :name auctex :version (11 88 6) :summary "Integrated environment for *TeX*" :reqs nil :kind nil :archive nil :dir "/home/AROT/.emacs.d/elpa/auctex-11.88.6" :extras ((:url . "http://www.gnu.org/software/auctex/")) :signed nil))
  package--load-files-for-activation(#s(package-desc :name auctex :version (11 88 6) :summary "Integrated environment for *TeX*" :reqs nil :kind nil :archive nil :dir "/home/AROT/.emacs.d/elpa/auctex-11.88.6" :extras ((:url . "http://www.gnu.org/software/auctex/")) :signed nil) nil)
  package-activate-1(#s(package-desc :name auctex :version (11 88 6) :summary "Integrated environment for *TeX*" :reqs nil :kind nil :archive nil :dir "/home/AROT/.emacs.d/elpa/auctex-11.88.6" :extras ((:url . "http://www.gnu.org/software/auctex/")) :signed nil) nil deps)
  package-activate(auctex)
  package-initialize()
  byte-code("\302\303!\210\302\304!\210\305\306\307\310#\210\311\312\010\"\021\313 \207" [prelude-dir package-user-dir require cl package add-to-list package-archives ("melpa" . "http://melpa.org/packages/") t expand-file-name "elpa" package-initialize] 4)
  require(prelude-packages)
  eval-buffer(#<buffer  *load*> nil "/home/AROT/.emacs.d/init.el" nil t)  ; Reading at buffer position 4156
  load-with-code-conversion("/home/AROT/.emacs.d/init.el" "/home/AROT/.emacs.d/init.el" t t)
  load("/home/AROT/.emacs.d/init" t t)
  #f(compiled-function () #<bytecode 0x25ec51>)()
  command-line()
  normal-top-level()

由于我对 LISP 了解甚少,有人能帮我解决这个问题吗?谢谢!

相关内容