233
1 (set-background-color "gray20") 2 3 (set-foreground-color "wheat") 4 5 (setq default-tab-width 6) 6 7 (show-paren-mode 1) 8 9 (global-linum-mode t) 10 11 (defun compile-file () 12 (interactive) 13 (compile (format "g++ -o %s %s -g -Wall" (file-name-sans-extension (buffer-name))(buffer-name)))) 14 (global-set-key (kbd "<f9>") 'compile-file) 15 ;;;;;设置一键调试 16 (global-set-key (kbd "<f7>") 'gud-gdb) 17 (global-set-key (kbd "C-s") 'save-buffer)
(global-hl-line-mode t)
(ido-mode t)
(set-background-color "gray20")
(set-foreground-color "wheat")
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1)
(global-linum-mode t)
(set-background-color "gray20")
(set-foreground-color "wheat")
(setq default-tab-width 6)
(show-paren-mode 1)
(global-linum-mode t)
本文作者:xrdog
作者博客:http://www.cnblogs.com/Dragon-Light/
转载请注明出处,侵权必究,保留最终解释权!