标签:lan avoidance class MIXED adjust electric inter 结果 enabled
最近又用上了 emacs,又充实了一下我的配置文件。
结果就是更加难背了(雾
(custom-set-variables ‘(custom-enabled-themes (quote (tsdh-dark))))
(custom-set-faces)
(setq c-default-style "bsd")
(setq-default indent-tabs-mode nil)
(setq c-basic-offset 4)
(global-linum-mode t)
(global-hl-line-mode t)
(show-paren-mode t)
(fset ‘yes-or-no-p ‘y-or-n-p)
(require ‘electric)
(electric-pair-mode t)
(electric-layout-mode t)
(electric-indent-mode t)
(global-set-key [f6] ‘gdb)
(global-set-key [f7] ‘CCompile)
(global-set-key [f8] ‘shell)
(global-set-key (kbd "C-+") ‘text-scale-increase)
(global-set-key (kbd "C--") ‘text-scale-decrease)
(global-set-key (kbd "C-0") ‘text-scale-adjust)
(defun CCompile()
(interactive)
(compile (format
"g++ -o %s %s -g -lm -std=c++11 -O2 -Wall"
(file-name-sans-extension
(file-name-nondirectory buffer-file-name))
(file-name-nondirectory buffer-file-name))))
(setq require-final-newline t)
(setq inhibit-startup-message t)
(setq show-paren-style ‘mixed)
(mouse-avoidance-mode ‘animate)
(setq-default make-backup-files nil)
(require ‘ido)
(ido-mode t)
(server-start)
从里面也可以看出来,F6 可以调出 gdb(虽然我从来都不用),F7 是一键编译(这个太舒服了),F8 是调出命令行。
Ctrl+Shift+=
可以调大字体,Ctrl+-
可以调小字体,Ctrl+0
就是回到初始字体大小。
标签:lan avoidance class MIXED adjust electric inter 结果 enabled
原文地址:https://www.cnblogs.com/AThousandMoons/p/12919058.html