【问题标题】:How to set single click to enter directory in emacs speedbar?如何在emacs speedbar中设置单击进入目录?
【发布时间】:2011-08-17 23:37:51
【问题描述】:

我已经设置并运行了速度条,但我想更改它,以便单击 (Mouse-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 的函数,但仅限于速度条框架内。我发现最接近的事情是 ecb 设置:

(setq ecb-primary-secondary-mouse-buttons 'mouse-1--C-mouse-1)

但我没有使用 ecb,我只是使用 speedbar。也许还有其他方法可以做到这一点?

【问题讨论】:

    标签: emacs emacs-speedbar


    【解决方案1】:

    将此行添加到“speedbar-file-key-map”应该可以解决问题:

    (define-key map (kbd "<down-mouse-1>") 'dframe-click)
    

    如果您不想直接编辑 speedbar.el,您可以使用例如一个钩子。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-02-05
      • 2014-09-07
      • 1970-01-01
      • 2012-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多