evil模式下使用general作为leader键的二级命名问题

请教同仁个问题:

  1. 我使用purcell的配置做的扩展使用
  2. 在evil模式下,使用general作为leader键
  3. 如何将下图的prefix做二级/三级分类命令

General 文档都有,用 which-key,类似这样:

  (general-create-definer tyrant-def :keymaps 'tyrant-map)
  (tyrant-def "" nil)
  (tyrant-def
    "SPC"     '("M-x" . execute-extended-command)
    "TAB"     '("last buffer" . alternate-buffer)
    "!"       '("shell cmd" . shell-command)

    "b"       (cons "buffers" (make-sparse-keymap))
    "bb"      'switch-to-buffer
    "bB"      'ibuffer
    "bd"      'kill-current-buffer
    "bm"      'switch-to-messages-buffer
    "bs"      'switch-to-scratch-buffer
    "bu"      'reopen-killed-buffer
    "bx"      'kill-buffer-and-window)

详见我的配置 https://github.com/tshu-w/.emacs.d/blob/master/lisp/core-keybinds.el#L50

ok,谢谢,我试试