Table of Contents
- 1 手把手教你学会 Emacs 主题配置
- 1.1 下载color theme压缩包
- 1.2 解压并复制相应文件到.emacs.d/下
- 1.3 在~/.emacs加上如下代码
- 1.4 在Emacs中查看并选择
1 手把手教你学会 Emacs 主题配置
其实Emacs 主题非常重要,因为字体的颜色,背景光标等等都是你天天必须面对的,设定一个合适的主题,就像一个舒服的狗窝,让你不愿意离开。而且,更重要的,合适的界面配置能够保护你的视力,尤其是当你长时间坐在电脑面前码代码或者写文档的时候,更能体现出来。下面贴一张我的Emacs主题截图:
1.1 下载color theme压缩包
这是color theme的下载地址:http://download.savannah.gnu.org/releases/color-theme/ 这是color theme的WIKI:http://www.emacswiki.org/emacs/ColorTheme
1.2 解压并复制相应文件到.emacs.d/下
现在最新版本的应该是 color-theme-6.6.0,下载完毕之后解压。tar zxf color-theme-6.6.0.tar.gz选择其中的themes目录和color-theme.el到.emacs.d/下。cp -r themes color-theme.el ~/.emacs.d/
1.3 在~/.emacs加上如下代码
;;将~/.emacs.d/添加到加载路径
(add-to-list "load-path "~/.emacs.d/")
(require "color-theme)
(color-theme-initialize)
;; 这个是你选择的主题,后面的calm forest就是它的名字,注意使用小写。
(color-theme-calm-forest)
1.4 在Emacs中查看并选择
打开Emacs后可以 M+X color-theme-select 选择你喜欢的主题,然后将相应的名称写入.emacs中。手把手教你学会 Emacs 定制Ubuntu 12.04 wpa/wpa2无线上网手动配置相关资讯 emacs Emacs配置
- Emacs 25.1发布 (09月18日)
- Ubuntu 14.04 安装 Emacs 24.5 (03月09日)
- Emacs寻找新的维护者 (10/14/2015 19:34:19)
| - Vim 和 Emacs 到底哪个更适合你? (07月25日)
- 暴增 Emacs 生产力的十大最佳插件 (01月15日)
- Emacs和Vim:神的编辑器和编辑器之 (08/11/2015 13:20:01)
|
本文评论 查看全部评论 (0)