I've looked at the documentation and can o开发者_运维知识库nly seem to find a way to access the Emacs ECB browser window by left clicking the mouse in the browser area.
Keyboard navigation:
ECB windows from bottom to top.
- Go to history: "C-c . g h"
- Go to methods: "C-c . g m"
- Go to sources: "C-c . g s"
- Go to directories: "C-c . g d"
Main buffer: "C-c . g 1"
Using menubar — ECB -> Goto window -> ...
Or hotkeys. For example for switching to filesystem browser use function (ecb-goto-window-directories), which is bound to "C-c . g d" by default.
I have this in my .emacs
(global-set-key (kbd "<M-left>") 'ecb-goto-window-methods)
(global-set-key (kbd "<M-right>") 'ecb-goto-window-edit1)
You can similarly use more friendly key combinations to access the ecb window you want.
I usually use the same bindings as Raja Selvaraj, but at least in my ECB version (20120612.1129) its unnecessary to add extra mappings.
By default M-left / M-right are bound to windmove-left / windmove-right functions, that allow to switch to and from ECB Browser easily.
精彩评论