Emacs配置

(global-linum-mode t)
(setq default-cursor-type 'bar)
(setq default-tab-width 4)
(setq c-default-style "awk")
(global-set-key [f8] 'compile)
(global-set-key [f9] 'compile-file)
(global-set-key [f10] 'gud-gdb)
(global-set-key (kbd "C-s") 'save-buffer)
(global-set-key (kbd "C-a") 'mark-whole-buffer)
(global-set-key (kbd "RET") 'newline-and-indent)

(defun compile-file()
(interactive)
(compile (format "g++ -o %s %s -g -lm -Wall"(file-name-sans-extension(buffer-name))(buffer-name))))
posted @ 2020-11-20 12:16  zzy2005  阅读(61)  评论(0编辑  收藏  举报