29

ECB (Emacs Code Browser) を使用しており、デフォルトのレイアウトは次のとおりです。

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

デフォルトでは、メソッドは編集されたバッファに表示される順序で表示されますが、メソッドを名前でソートする方法を探しています。のようなものを使いたかったのecb-methods-sort-methodですが、存在しないようです。設定方法のヒントはありますか?

4

1 に答える 1

1

ドキュメントをざっと見てみました。「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.                       
于 2012-12-06T14:19:04.507 に答える