1
0
Fork
You've already forked leptover
0
No description
  • Emacs Lisp 100%
Find a file
2024年09月21日 22:24:34 +08:00
leptover.el init 2024年09月21日 22:24:34 +08:00
README.md init 2024年09月21日 22:24:34 +08:00

Leptover, basically a clone of meow-mode's motion mode.

Usage

Leptover is meant to be used as a light weight meow-style motion mode for your favorite modal editing package. For example, to use this package with evil-mode, define a evil-sate with leptover-enable:

 (evil-define-state leptover
 "Leptover state."
 :tag " <L> "
 :message "Leptover State Activated."
 (if (evil-leptover-state-p)
 (leptover-enable t)
 (leptover-enable nil)))

Then add some major modes to evil-leptover-state-modes, those major modes cannot exist in evil-motion-state-modes or evil-emacs-state-modes otherwise evil-mode will try use motion state or emacs state first.

To access the command shadowed by key bindings in leptover-mode-map, just prefix the shadowed key with leptover-remap-prefix, as a improvment upon meow's motion mode, you can use non-prefix key for leptover-remap-prefix, in that case it will work like a leader key.