[备份]Emacs配置文件
(set-background-color "gray20")
(set-foreground-color "wheat")
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(defun compile-file ()
(interactive)
(compile (format "g++ -o %s %s -g -lm -Wall" (file-name-sans-extension (buffer-name))(buffer-name))))
(global-set-key (kbd "<f9>") 'compile-file)
(global-set-key (kbd "<f7>") 'gud-gdb)
(setq default-tab-width 4)
(setq c-basic-offset 4)
(c-set-offset 'substatement-open 0)
(blink-cursor-mode -1)
(setq kill-ring-max 200)
(show-paren-mode 1)