我試圖安裝Scala,按照Set up for learning Scala with Emacs。無法在emacs中安裝scala - 加載`/home/nazar_art/.emacs'時發生錯誤
我目前的操作系統是Ubuntu 12.04。
我完成了一步一步。
安裝後我運行Emacs和見下錯誤:
Warning (initialization): An error occurred while loading `/home/nazar_art/.emacs':
File error: Cannot open load file, scala-mode-auto
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.
我猜測,這是權限的問題。我將其更改爲scala-mode
,但沒有成功。
這裏是~/.emacs.d
內容:
[email protected]:~/.emacs.d$ ls -lg
total 12
drwx------ 2 nazar_art 4096 Oct 10 10:58 auto-save-list
drwxrwxr-x 4 nazar_art 4096 Oct 5 00:12 elpa
drwxrwxrwx 4 nazar_art 4096 Oct 10 10:41 scala-mode
我在新的Emacs和不知道,可以找到錯誤的原因跟着我的直覺。 有什麼建議嗎?
- 如何解決這個問題?
'(add-to-list'load-path「〜/ .emacs.d/scala-mode」)(require'scala-mode-auto)'=>文件 '〜/ .emacs。 d/scala-mode/scala-mode-auto.el'必須存在。 –
@ abo-abo我在哪裏可以得到這個文件?因爲它不存在。這一個如何被忽略....? –