gpt4 book ai didi

emacs - 按名称排序 ECB 方法缓冲区中显示的方法

转载 作者:行者123 更新时间:2023-12-03 09:31:44 25 4
gpt4 key购买 nike

我正在使用 ECB (Emacs Code Browser)和我的默认布局如下:

;; +------+-------+--------------------------------------+
;; | | |
;; | Directories | |
;; | | |
;; +------+-------+ |
;; | History | Edit |
;; +------+-------+ |
;; | Methods | |
;; | | |
;; +-----------------------------------------------------+

默认情况下,这些方法按照它们在编辑的缓冲区中出现的顺序显示,但我正在寻找一种按名称对它们进行排序的方法。我想使用类似 ecb-methods-sort-method 的东西但它似乎不存在。
有关如何设置的任何提示?

最佳答案

我快速查看了文档,看起来您可以自定义“ecb-methods-menu-sorter”。

C-h v ecb-methods-menu-sorter

从文档:
*Function which re-sorts the menu-entries of the directories buffer.          
If a function then this function is called to re-arrange the menu-entries of
the combined menu-entries of the user-menu-extensions of
`ecb-directories-menu-user-extension' and the built-in-menu
`ecb-directories-menu'. If nil then no special sorting will be done and the
user-extensions are placed in front of the built-in-entries.

The function get one argument, a list of menu-entries. For the format of this
argument see `ecb-directories-menu-user-extension'. The function must return a
new list in the same format. Of course this function can not only re-arrange
the entries but also delete entries or add new entries.

关于emacs - 按名称排序 ECB 方法缓冲区中显示的方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8713061/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com