本文主要是介绍emacs配置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
考场配置:
(setq c-default-style "awk")
(tool-bar-mode 0)
(menu-bar-mode 0)
(global-linum-mode t)
(show-paren-mode t)
(ido-mode t)
(setq-default cursor-type 'bar)
(cua-mode t)
(global-auto-revert-mode t)
(setq-default scroll-step 1 scroll-margin 0 scroll-conservatively 10000)
(global-set-key [f9] 'compile-file)
(defun compile-file()
(interactive)
(compile (format "g++ -o %s %s -g -lm -Wall -std=c++98" (file-name-sans-extension (buffer-name)) (buffer-name)))
)
(global-set-key (kbd "C-s") 'save-buffer)
(global-set-key (kbd "C-q") 'kill-buffer)
(global-set-key (kbd "C-x C-s") 'isearch-forward)
(global-set-key (kbd "C-e") 'eshell)
(global-set-key (kbd "C-z") 'undo)
(global-set-key (kbd "C-x C-a") 'mark-whole-buffer)
(global-set-key (kbd "C-h") 'query-replace)
这篇关于emacs配置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!