我已经设置了speedbar并开始工作,但我想要更改它,这样只需单击一下(鼠标-1)就可以进入目录。我已经在谷歌上搜索并查看了相关文档:
The mouse bindings are:
Mouse-1
Move cursor to that location.
Mouse-2
Double-Mouse-1
Activate the current button. Double-Mouse-1 is called a double click on
other platforms, and is useful for windows users with two button mice.因此,基本上我一直在尝试找到如何将Mouse-1映射到当前绑定到Mouse-2的函数,但仅限于速度栏框架内。我发现最接近这一点的是欧洲央行的设置:
(setq ecb-primary-secondary-mouse-buttons 'mouse-1--C-mouse-1)但我不是在用ecb,我只是在用speedbar。也许还有其他方法可以做到呢?
发布于 2011-08-26 15:20:09
将这一行添加到‘`speedbar file-key-map’中应该可以做到这一点:
(define-key map (kbd "<down-mouse-1>") 'dframe-click)如果你不想直接编辑speedbar.el,你可以使用钩子。
https://stackoverflow.com/questions/7100787
复制相似问题