3

emacs 新手。OSX 上的 GNU Emacs 22.1.1。按照说明安装邪恶。我得到:

Symbol's function definition is void: declare-function

emacs --debug-init gives:

Debugger entered--Lisp error: (void-function declare-function)  
  (declare-function evil-visual-state-p "evil-visual")  
  eval-buffer(#<buffer  *load*<3>> nil "/Users/rahul/.emacs.d  /evil/evil-repeat.el" nil t)  ; Reading at buffer pos$  
  load-with-code-conversion("/Users/rahul/.emacs.d/evil/evil-  repeat.el" "/Users/rahul/.emacs.d/evil/evil-repeat.el$  
  require(evil-repeat)  
  eval-buffer(#<buffer  *load*<2>> nil "/Users/rahul/.emacs.d  /evil/evil.el" nil t)  ; Reading at buffer position 1$  
  load-with-code-conversion("/Users/rahul/.emacs.d/evil/evil.el"   "/Users/rahul/.emacs.d/evil/evil.el" nil t)  
  require(evil)  
  eval-buffer(#<buffer  *load*> nil "/Users/rahul/.emacs" nil t)    ; Reading at buffer position 122  
  load-with-code-conversion("/Users/rahul/.emacs"   
"/Users/rahul/.emacs" t t)  
  load("~/.emacs" t t)  
  #[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\314#\203#^@\315\202A^@\312\307\31$
  command-line()
  normal-top-level()

我的 .emacs 有:

;;; Emacs Load Path  
(setq load-path (cons "~/bin" load-path))  

(add-to-list 'load-path "~/.emacs.d/evil")  
(require 'evil)    
(evil-mode 1)  
(require 'undo-tree)    
4

1 回答 1

13

Emacs 22.1 现在已经过时了(2007 年中)。您想要来自http://emacsformacosx.com/的最新 23.x 或最新 24.x 预测试

于 2012-01-12T07:56:39.433 回答