emacs 常用配置

来源:互联网 发布:淘宝直播官方怎么收费 编辑:程序博客网 时间:2024/05/15 17:42

1,显示行号

(global-linum-mode 1)

2,当前行高亮
(global-hl-line-mode 1)

3,背景色调整
(custom-set-faces  ;; custom-set-faces was added by Custom.  ;; If you edit it by hand, you could mess it up, so be careful.  ;; Your init file should contain only one such instance.  ;; If there is more than one, they won't work right. '(default ((t (:inherit nil :stipple nil :background "black" :foreground "grey80" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 120 :width normal :foundry "apple" :family "Monaco")))))

4, TAB 为4个空格

(setq tab-width 4 c-basic-offset 4)