Emacs scala开发的基本设置:初始化错误

时间:2013-12-09 14:55:49

标签: emacs emacs24

我按照此post中给出的步骤设置我的emacs环境以进行scala开发。这是我在〜/ .emacs 文件中写的:

(add-to-list 'load-path “~/.emacs.d/”)
(add-to-list 'load-path “~/.emacs.d/plugins/”)
(require 'ido)
(ido-mode t)
(setq ido-enable-flex-matching t) ;; enable fuzzy matching
(add-to-list 'load-path "~/.emacs.d/plugins/autocomplete/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/autocomplete/ac-dict")
(ac-config-default) 
(add-to-list 'load-path
          "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
(setq frame-title-format '("Emacs @ " system-name ": %b %+%+ %f"))
(add-to-list 'load-path "/usr/share/emacs24/site-lisp/emacs-goodies-el/color-theme.el")
(require 'color-theme)
(color-theme-initialize)
(color-theme-gnome2)
(add-to-list 'load-path "~/install/scala-mode2")
(require 'scala-mode2)

但是当我启动emacs时,我可以在使用 - debug-init 选项运行它后看到以下错误:

Debugger entered--Lisp error: (void-variable \u201C~/\.emacs\.d/\u201D)
(add-to-list (quote load-path) \u201C~/\.emacs\.d/\u201D)
eval-buffer(#<buffer  *load*> nil "/home/vraj11/.emacs" nil t)  ; Reading at $
load-with-code-conversion("/home/vraj11/.emacs" "/home/vraj11/.emacs" t t)
load("~/.emacs" t t)
#[0 "^H\205\262^@     \306=\203^Q^@\307^H\310Q\202;^@ \311=\204^^^@\307^H\312$
command-line()
normal-top-level()

我无法猜出出了什么问题。请帮我摆脱这个。

1 个答案:

答案 0 :(得分:1)

前两行中的字符串文字在语法上是错误的。您需要使用简单的引号,即",而不是弯引号。

将所有替换为"