Emacs 按名称排序ECB方法缓冲区中显示的方法
我正在使用(Emacs代码浏览器),默认布局如下:Emacs 按名称排序ECB方法缓冲区中显示的方法,emacs,emacs-ecb,Emacs,Emacs Ecb,我正在使用(Emacs代码浏览器),默认布局如下: ;; +------+-------+--------------------------------------+ ;; | | | ;; | Directories | | ;; | |
;; +------+-------+--------------------------------------+
;; | | |
;; | Directories | |
;; | | |
;; +------+-------+ |
;; | History | Edit |
;; +------+-------+ |
;; | Methods | |
;; | | |
;; +-----------------------------------------------------+
默认情况下,这些方法是按照它们在编辑的缓冲区中出现的顺序显示的,但我正在寻找一种方法,让它们按名称排序。我想使用类似于ecb-methods-sort-method
的方法,但它似乎不存在。
有关于如何设置的提示吗 我快速查看了文档,看起来你可以定制“ecb方法菜单分类器”
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.
例如,可以通过更改ECB代码和引入新的自定义参数来实现这一点。你还需要这个吗?是的,但这显然不是关键,只是我在其他编辑器(比如TextMate)上看到了它,它确实是有意义的。现在我承认我不是足够好的lisp程序员,无法进入ECB代码…请通过电子邮件或文件给我写信-我会尽量找时间来实现这一点。如果您需要帮助实现排序功能,请告诉我