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>

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

posted @   WendellYih  阅读(1286)  评论(0编辑  收藏  举报
编辑推荐:
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
阅读排行:
· Ollama——大语言模型本地部署的极速利器
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· Windows编程----内核对象竟然如此简单?
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
点击右上角即可分享
微信分享提示