我试图根据http://david.rothlis.net/emacs/customize_colors.html在emacs 23中获得日光色主题。我已将所有文件夹和文件放入〜/ .emacs.d中。然后我补充说:emacs 23中.emacs文件的正确语法是什么?
(add-to-list 'load-path "~/.emacs.d/color-theme-6.6.0"')
(add-to-list 'load-path "~/.emacs.d/emacs-color-theme-solarized-master"')
(require 'color-theme)
(require 'color-theme-solarized)
我的.emacs文件。然而,这使我有以下错误:
Warning (initialization): An error occurred while loading `/home/brain/.emacs':
Invalid read syntax:)
调试这就是:
Debugger entered--Lisp error: (invalid-read-syntax ")")
eval-buffer(#<buffer *load*> nil "/home/brain/.emacs" nil t) ; Reading at buffer position 80
load-with-code-conversion("/home/brain/.emacs" "/home/brain/.emacs" t t)
load("~/.emacs" t t)
#[nil "\205\264
我一直在这个很长一段时间了,我只是不能似乎找到做这一点的正确方法我自己在http://www.gnu.org/software/emacs/manual/html_node/emacs/Init-Syntax.html#Init-Syntax,SO或其他地方。我对Linux很新,但我不认为这是造成这种情况的原因。任何帮助是极大的赞赏。谢谢。
PS这是我整个的.emacs的样子:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 83 :width normal :foundry "unknown" :family "DejaVu Sans Mono")))))
(add-to-list 'load-path "~/.emacs.d/color-theme-6.6.0"')
(add-to-list 'load-path "~/.emacs.d/emacs-color-theme-solarized-master"')
(require 'color-theme)
(require 'color-theme-solarized)