2009-04-29

使用 windmove在Emacs視窗中移動

我們知道在Gnome桌面環境裡,可以用Ctrl+Alt再加上上下左右鍵在虛擬桌面間移動。同樣的,有沒有辦法使用類似的鍵在Emacs中移動游標到不同的視窗中(Emacs中,Window是定義成一個分割的區域喔。Frame才是一般熟知的視窗喔)呢?答案是有的。就是使用windmove套件,將下面兩行貼入你的Scratch Buffer中先試試看。
(require 'windmove)
(windmove-default-keybindings 'control)
所以,Ctrl再加上下左右鍵就可以在視窗間移動囉。

沒有留言:

張貼留言