如何在emacs中安装ac-R模式?


2

我最近添加的文件ac-R.el/usr/local/share/emacs/site-lisp,随着(require 'ac-R)~/.emacs

现在,当我使用--debug-init打开emacs时,出现错误

    Debugger entered--Lisp error: (void-variable ac-modes)
  add-to-list(ac-modes ess-mode)
  eval-buffer(#<buffer  *load*<2>> nil "/usr/local/share/emacs/site-lisp/ac-R.el" nil t)  ; Reading at buffer position 7191
  load-with-code-conversion("/usr/local/share/emacs/site-lisp/ac-R.el" "/usr/local/share/emacs/site-lisp/ac-R.el" nil t)
  require(ac-R)
  eval-buffer(#<buffer  *load*> nil "/home/dlebauer/.emacs" nil t)  ; Reading at buffer position 3548
  load-with-code-conversion("/home/dlebauer/.emacs" "/home/dlebauer/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "\205\264

当点击时load-with-code-conversion,它说

找不到库/usr/share/emacs/23.1.50/lisp/international/mule.el

即使我已经通过突触安装了ule子(我正在使用Ubuntu 10.04)

如何在正确的位置获得m子库?


您的问题不是缺少m子,而是ac-R.el是HTML文件而不是Lisp文件。确保在那里保存了正确的文件。:-)
mihi

@mihi谢谢;我使用检索了文件,wget http://www.emacswiki.org/emacs/ac-R.el 但现在我看到http://www.emacswiki.org/emacs/download/ac-R.el了正确的链接
David LeBauer 2011年

@mihi我已将错误消息更改为使用Lisp文件时收到的错误消息...
David LeBauer 2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.