Emacs Tip -- 2
利用windmove进行快速窗口切换:
;; windmove keybindings下面一行加了个键绑定:``C-c v''用于切换view-mode:
(if (<= emacs-major-version 21)
(progn
(global-set-key [?\e left] 'windmove-left)
(global-set-key [?\e right] 'windmove-right)
(global-set-key [?\e up] 'windmove-up)
(global-set-key [?\e down] 'windmove-down))
(windmove-default-keybindings 'alt))
(global-set-key "\C-cv" 'view-mode)``view-mode''可以方便的浏览代码,比如:d/u两个键分别用来向前/后翻半页,该模式下缓冲区变为只读,避免误写。
标签: Emacs
0 Comments:
发表评论
<< Home