emacs配置

考场配置:

(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") ‘shell)
(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配置

上一篇:win8内置管理员用户无法激活此应用


下一篇:关于在Linux下执行程序时,需要配置路径的/etc/ld.so.conf详解【转】