3. 配置(通过修改.emacs和使用插件达到某种效果)

3.1 基本设置

;; 在标题栏提示你目前在什么位置
(setq frame-title-format "zhangjie@%b")
;; 默认显示 80列就换行
(setq default-fill-column 80)
;; 去掉工具栏
(tool-bar-mode nil)
;; 去掉菜单栏
;(menu-bar-mode nil)
;; 去掉滚动栏
(scroll-bar-mode nil)
;; 语法高亮
(global-font-lock-mode t)
;; 一打开就起用 text 模式。
(setq default-major-mode 'text-mode)
;; 以 y/n代表 yes/no
(fset 'yes-or-no-p 'y-or-n-p)
;; 显示括号匹配
(show-paren-mode t)
(setq show-paren-style 'parentheses)
;; 显示时间,格式如下
(display-time-mode 1)
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)