Blog

Blog

PHODAL

Emacs 入门指引(五)扩展入门

开始之前

由于大多数扩展的使用方法大多是一样的,也因此,我们以此为例介绍,最后的效果图(使用的主题是:color-theme-classic)

开始工作

Google搜索获得Color-theme:

获取Color-theme

官方网址:http://www.nongnu.org/color-theme/

如果是GNU/Linux系统,比如Ubuntu等,可以这样做

# Debian and derived
apt-get install emacs-goodies-el

Gentoo

emerge color-theme

Slackware via SBo

sbopkg -i color-theme-el

下载获取的文件,解压到设置的HOME目录,也就是color-theme,放到.emacs.d文件夹下。然后添加下面的代码到.emacs文件

(add-to-list 'load-path "/path/to/color-theme.el/file")
(require 'color-theme)
(eval-after-load "color-theme"
  '(progn
     (color-theme-initialize)
     (color-theme-hober)))

/path/to/color-theme.el指的是路径,例如如果我们设置的home是emacs.config那么,就应该是~/.emacs.d/color-theme-6.0


或许您还需要下面的文章:

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

Recent Posts

About the Author

Phodal Huang

Engineer, Consultant, Writer, Designer

ThoughtWorks Tech Lead

Engineer / Consultant / Writer / Design Apprentice

Deep Open Source Enthusiast

Author of "Frontend Architecture: from Basic to Micro-Frontend", "Design IoT System by Yourself", "Full Stack Development: Lean Practice"

Contact me: h@phodal.com

WeChat Official Account: Latest Tech Sharing

Tags