3.3 设置主题(使用color-theme.el)

(1) 在 http://download.savannah.gnu.org/releases/color-theme/ 下载 color-theme-6.6.0.zip 并解压
(2) 将 color-theme-6.6.0 中的 color-theme.el 和 themes 文件夹复制到 D:\Program Files\emacs\.emacs.d
(3) 在配置文件下添加如下代码:

(add-to-list 'load-path "~/.emacs.d")
(require 'color-theme)

(4) 打开 emacs , M-x color-theme-select, 回车查看效果,d 查看主题信息(主题名)
在 (require ‘color-theme) 下面添加代码:

(color-theme-dark-blue2)

3.4 设置缩进(回车自动缩进,tab = 4)

;; tab 缩进
(setq c-basic-offset 4)
(setq indent-tabs-mode nil)
(setq default-tab-width 4)
(setq tab-width 4)
(setq tab-stop-list ())
(loop for x downfrom 40 to 1 do
(setq tab-stop-list (cons (* x 4) tab-stop-list)))
 
;; 回车缩进
(global-set-key "\C-m" 'newline-and-indent)
(global-set-key (kbd "C-<return>") 'newline)

3.5 修改鼠标形状

;; 设置光标为竖线
(setq-default cursor-type 'bar)
;; 设置光标为方块
;;(setq-default cursor-type 'box)

3.6 启动时最大化窗口

(run-with-idle-timer 0.0 nil 'w32-send-sys-command 61488)

参考资料

  1. Emacs/Emacs的安装 
  2. Emacs_1-ColorTheme
  3. 折腾Emacs