Skip to content

How can I set multiple arbitrary leader keys? #584

Answered by adimit
jgarte asked this question in Q&A
Discussion options

You must be logged in to vote

My current approach is to use transient, and set up key bindings in meow's normal mode to call these different transients.

Here's a transient somewhat close to Helix's g:

(transient-define-prefix dispatch-goto-menu () "This isn't documentation"
  [["Move"
    ("e" "bottom" end-of-buffer)
    ("g" "top" beginning-of-buffer)
    ("d" "definition (xref)" xref-find-definitions)
    ("h" "beginning of line" beginning-of-line)
    ("l" "end of line" end-of-line)
    ("s" "first non-blank-line" beginning-of-line-text)]
   ["Buffer"
    ("n" "next buffer" next-buffer)
    ("p" "previous buffer" previous-buffer)
    ("b" "bury buffer" bury-buffer)
    ("u" "unbury buffer" unbury-buffer)
    "Avy"

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@jgarte
Comment options

Answer selected by jgarte
Comment options

You must be logged in to vote
5 replies
@adimit
Comment options

@zetashift
Comment options

@adimit
Comment options

@willbush
Comment options

@zetashift
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants