2013-10-03 39 views
0

我安裝了ac-math插件以及自動完成。我交流math.el在.emacs.d /插件/自動完成emacs中的交流數學錯誤

我把這個在我的.emacs

(add-to-list 'load-path "~/.emacs.d/plugins/auto-complete/.") 
(add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/auto-complete/ac-dict/") 
(require 'auto-complete-config) 
(ac-config-default) 

(require 'ac-math) 

(add-to-list 'ac-modes 'latex-mode) ; make auto-complete aware of latex-mode 

(defun ac-latex-mode-setup() ; add ac-sources to default ac-sources 
(setq ac-sources 
(append '(ac-source-math-unicode ac-source-math-latex ac-source-latex-commands) 
ac-sources))) 

(add-hook 'latex-mode-hook 'ac-latex-mode-setup) 

但我得到的錯誤「錯誤類型參數:integrep無」。任何幫助?

+0

你是從ELPA安裝的嗎?我剛安裝,它很好。 –

+0

這應該可能是[MELPA](http://melpa.milkbox.net/);看起來[ELPA檔案](http://elpa.gnu.org/packages/)沒有'ac-math'。 – legoscia

+0

請複製並粘貼錯誤信息。我很確定emacs沒有抱怨「integrep」失敗。 –

回答