GNU Emacs配色

配色方案需要安装插件,地址如下

http://download.savannah.gnu.org/releases/color-theme/

安装说明地址如下

http://www.emacswiki.org/emacs/ColorTheme

简要说明安装方法

1.将下载的插件包解压到一个目录中,然后向.emacs文件中添加下面的代码

;; 加载配置文件的路径
(add-to-list 'load-path "~/.emacs.d")
(require 'color-theme) (color-theme-initialize) ;; 下面的配色方案任选其一 ;;(color-theme-taming-mr-arneson) ;;(color-theme-pok-wog) ;;(color-theme-subtle-hacker) ;;(color-theme-sitaramv-solaris) ;;(color-theme-shaman) ;;(color-theme-ryerson) ;;(color-theme-robin-hood) ;;(color-theme-gnome2) ;;(color-theme-deep-blue) ;;(color-theme-classic) (color-theme-bharadwaj-slate)

其实配色方案的名称可以通过下面的方法获取,进入emacs后键入下面的命令

M-x load-library RET color-theme

然后键入下面的命令

M-x color-theme-selcet

然后在主缓冲区内会显示配色方案的列表,选择一个方案,使用回车键应用,如果想知道其在配置文件的中使用方法键入D即可在回显区显示类似于下面内容

color-theme-subtle-hacker is an interactive Lisp function in
`color-theme-library.el'.

(color-theme-subtle-hacker)

Subtle Hacker Color Theme.
Based on gnome2, but uses white for important things like comments,
and less of the unreadable tomato.  By Colin Walters <levanti@verbum.org>

标红的就是这种配色放在配置文件中的名称

原文地址:https://www.cnblogs.com/wendellyi/p/3127713.html