按照置项来写.emacs里的color-theme配置总是提示无法装载.emacs:
(load-file "/home/zhan/myEmacs/color-theme.el")
(color-theme-dark-blue)
这个配置在Version: 5.2.13可以但在6.6.0+Emacs23
出错。
-----------------------
应该在加一句,不然load .emacs的时候会出错。成为:
(load-file "/home/zhan/myEmacs/color-theme.el")
(color-theme-initialize)
(color-theme-dark-blue)
emacs 23 配置指南里的,color-theme
-
- 帖子: 167
- 注册时间: 2008-06-19 15:27
-
- 帖子: 167
- 注册时间: 2008-06-19 15:27
Re: emacs 23 配置指南里的,color-theme
emacs23 要用6.5.5版本的color-theme .el~~~~~~~~~~~~~~~~
- zhan
- 帖子: 1880
- 注册时间: 2005-08-15 0:04
- 来自: 南7技校
Re: emacs 23 配置指南里的,color-theme
呵呵,很老的帖子了,一直懒得更新,上次我觉得太旧了把置顶取消了的,后来不知是谁又弄出来了。
emacs23 + color theme 6.60 的配置,我是如下设置的。(自带的颜色设置东西太多了,好些东西一辈子用不到一次,我从网上找了个还算比较习惯的 tango 配色)
emacs23 + color theme 6.60 的配置,我是如下设置的。(自带的颜色设置东西太多了,好些东西一辈子用不到一次,我从网上找了个还算比较习惯的 tango 配色)
代码: 全选
;(add-to-list 'load-path "~/myEmacs/color-theme-6.6.0/")
(eval-when-compile (require 'color-theme))
(defun color-theme-tango ()
"A color theme based on Tango Palette."
(interactive)
(color-theme-install
'(color-theme-tango
((background-color . "#2e3436")
(background-mode . dark)
(border-color . "#888a85")
(cursor-color . "#fce94f")
(foreground-color . "#eeeeec")
(mouse-color . "#8ae234"))
((help-highlight-face . underline)
(ibuffer-dired-buffer-face . font-lock-function-name-face)
(ibuffer-help-buffer-face . font-lock-comment-face)
(ibuffer-hidden-buffer-face . font-lock-warning-face)
(ibuffer-read-only-buffer-face . font-lock-type-face)
(ibuffer-special-buffer-face . font-lock-keyword-face)
(ibuffer-title-face . font-lock-type-face))
(border ((t (:background "#888a85"))))
(fringe ((t (:background "grey10"))))
(mode-line ((t (:foreground "#eeeeec" :background "#555753"))))
(region ((t (:background "#555753"))))
(font-lock-builtin-face ((t (:foreground "#729fcf"))))
(font-lock-comment-face ((t (:foreground "#888a85"))))
(font-lock-constant-face ((t (:foreground "#8ae234"))))
(font-lock-doc-face ((t (:foreground "#888a85"))))
(font-lock-keyword-face ((t (:foreground "#729fcf" :bold t))))
(font-lock-string-face ((t (:foreground "#ad7fa8" :italic t))))
(font-lock-type-face ((t (:foreground "#8ae234" :bold t))))
(font-lock-variable-name-face ((t (:foreground "#eeeeec"))))
(font-lock-warning-face ((t (:bold t :foreground "#f57900"))))
(font-lock-function-name-face ((t (:foreground "#edd400" :bold t :italic t ))))
(comint-highlight-input ((t (:italic t :bold t))))
(comint-highlight-prompt ((t (:foreground "#8ae234"))))
(isearch ((t (:background "#f57900" :foreground "#2e3436"))))
(isearch-lazy-highlight-face ((t (:foreground "#2e3436" :background "#e9b96e"))))
(show-paren-match-face ((t (:foreground "#2e3436" :background "#73d216"))))
(show-paren-mismatch-face ((t (:background "#ad7fa8" :foreground "#2e3436"))))
(minibuffer-prompt ((t (:foreground "#729fcf" :bold t))))
(info-xref ((t (:foreground "#729fcf"))))
(info-xref-visited ((t (:foreground "#ad7fa8"))))
)))
(color-theme-tango)
飞得高,飞得低,学习再学习,多少大秘密!
http://zhan.blog.ubuntu.org.cn
http://zhan.blog.ubuntu.org.cn