(custom-set-variables
;; custom-set-variables 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.
‘(cua-mode t nil (cua-base))
‘(show-paren-mode t)
‘(tool-bar-mode nil))
(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 (:family “Consolas” :foundry “outline” :slant normal :weight normal :height 142 :width normal)))))
;;自带
(setq default-frame-alist’
((top . 20) (left . 50) (width . 120) (height . 30))
)
;;非必要
(setq make-backup-files nil) ;;退出时删除生成的副本
(setq inhibit-splash-screen t) ;;关闭帮助画面
(electric-pair-mode t) ;;自动补全括号
(electric-indent-mode t) ;;花括号自动换行
(show-paren-mode t) ;;显示匹配的括号
(global-linum-mode t) ;;显示行号
(setq scroll-step 1);;每次一行一行向下翻
(setq-default cursor-type ‘bar) ;;光标设为竖线
(setq-default compile-command “”) ;;默认编译命令
(setq default-tab-width 4) ;;默认Tab宽度
(setq c-basic-offset 4) ;;缩进宽度
;;比较有用
(global-set-key[f9]’
(
lambda()
(save-buffer)
(interactive)
(compile compile-command)
)
)
(global-set-key[f5]’gdb)
;;编译和调试
Emacs配置
最新推荐文章于 2018-11-17 18:51:13 发布