Emacs 快捷键设置
;;F4 Speedbar
(global-set-key[(f4)] 'speedbar-get-focus)
;;F1 进入终端
(global-set-key [(f1)] 'shell)
;;F5 调试程序
(global-set-key [(f5)] 'gdb)
;;F9 快速编译
(defun quick-compile ()
"A quick compile funciton for C++"
(interactive)
(compile (concat "g++ " (buffer-name (current-buffer)) " -g")))
(global-set-key [(f9)] 'quick-compile)
;;F11 关闭其它窗口
(global-set-key [(f11)] 'delete-other-windows)
;;F12 窗口间跳转
(global-set-key [(f12)] 'other-window)