emacs配置
这已经是我能接受的最简单配置了
(global-linum-mode t)
(set-background-color "gray15")
(set-foreground-color "gray")
(global-set-key (kbd "C-a") 'mark-whole-buffer)
(global-set-key (kbd "RET") 'newline-and-indent)
(setq default-cursor-type 'bar)
(setq default-tab-width 4)
(setq c-default-style "awk")
(electric-pair-mode 1)
(setq electric-pair-pairs
'(
(?\" . ?\")
(?\{ . ?\})
(?\' . ?\')))
(show-paren-mode 1)
(global-set-key [f9] 'compile-file)
(defun compile-file()(interactive)
(save-buffer)
(compile(format "g++ -o '%s' '%s' -lm -Wall"
(file-name-sans-extension(buffer-name))(buffer-name))))