您尚未登录。

#1 2016-07-01 20:56:44

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Emacs file-error "Cannot open load file" "eclim" 解决办法

According to Emacs Eclim, I added the following to ~/.emacs.d/init.d for emacs-eclim:

(require 'eclim)
(global-eclim-mode)

; If you want to control eclimd from emacs, also add:
(require 'eclimd)
The output of emacs -nw --debug-init is:
Debugger entered--Lisp error: (file-error "Cannot open load file" "eclim")
  require(eclim)
  eval-buffer(#<buffer  *load*> nil "/home/tim/.emacs.d/init.el" nil t)  ; Reading at buffer position 4117
  load-with-code-conversion("/home/tim/.emacs.d/init.el" "/home/tim/.emacs.d/init.el" t t)
  load("/home/tim/.emacs.d/init" t t)
  #[0 "^H\205\262^@     \306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312Q\202;^@\313\307\314\315#\203*^@\316\202;^@\313\307\314\317#\$
  command-line()
  normal-top-level()

解决办法


(add-to-list 'load-path "~/.emacs.d/elpa/emacs-eclim-20140809.207/")

离线

#2 2016-07-04 14:22:13

血族使天
会员
注册时间: 2013-01-12
帖子: 132

Re: Emacs file-error "Cannot open load file" "eclim" 解决办法

为什么不用 elpa 安装,省事很多的,类似的路径问题都会自动解决

最近编辑记录 血族使天 (2016-07-04 14:23:07)

离线

#3 2016-07-04 14:39:26

roadgo
会员
注册时间: 2012-04-07
帖子: 380

Re: Emacs file-error "Cannot open load file" "eclim" 解决办法

elpa 安装也会出这个问题,请参考(add-to-list 'load-path "~/.emacs.d/elpa/chinese-fonts-setup-20160601.2306/")

离线

页脚