emacs配置顏色主題


color theme是emacs的美化包,用emacs的lips寫的擴展程序吧,有很多顏色配置方案,下載地址: 
http://download.savannah.gnu.org/releases/color-theme/

linux下配置方法:
將壓縮包中color-theme.el和themes文件夾拷貝到某個文件夾,我的是~/.emacs.d
,然后打開配置文件.emacs
沒有.emacs可以點配置按鈕,然后點save for future sessions按鈕
打開后寫入:
(add-to-list 'load-path "~/.emacs.d/")
(require 'color-theme)
(color-theme-initialize)
(color-theme-deep-blue)
我選擇用的color-theme-deep-blue主題


windows下配置方法:
因為路勁不知道怎么寫,就不用add-to-list了,直接把color-theme.el和themes拷貝到emacs安裝目錄里site-lisp文件夾下,是個默認目錄。
然后在系統盤Documents and Settings文件夾里面搜索出.emacs,沒有的話用配置按鈕保存個出來。
然后編輯.emacs,寫入:
(require 'color-theme)
(color-theme-initialize)
(color-theme-deep-blue)

運行時要更換主題用M-x color-theme-xxx選擇一個。沒有生效的話emacs --init-debug啟動,看看哪錯了



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM