My understanding from reading the doc string is that I should be able to execute evil-lisp-state commands using the leader specified with evil-lisp-state-leader as follows:
if evil-lisp-state-global is t, in any major mode
else in major modes listed in evil-lisp-state-major-modes
Moreover, I assumed that I would enter "lisp" state as follows:
if evil-lisp-state-enter-lisp-state-on-command is t, upon executing any command with the leader
else when I execute <leader> .
Finally, I assumed that once in "lisp" state, I should be able to execute commands using the short (generally single key, sans leader) keybindings. But what's confusing me is that even in "lisp" state, the leader key sequence is required unless I've set evil-lisp-state-global. Sure enough, code inspection revealed that evil-lisp-state-map is populated if and only ifevil-lisp-state-global is t. I'm having trouble understanding the reason for this, especially given that the default setting of evil-lisp-state-enter-lisp-state-on-command is t. What's the point in a "lisp" state that doesn't give you more convenient (i.e., sans leader) access to the evil lisp state commands? Why wouldn't you populate evil-lisp-state-map (or even evil-lisp-state-local-map) unconditionally, and simply let evil-lisp-state-global determine where you can access the leader?
My understanding from reading the doc string is that I should be able to execute evil-lisp-state commands using the leader specified with
evil-lisp-state-leader
as follows:evil-lisp-state-global
ist
, in any major modeevil-lisp-state-major-modes
Moreover, I assumed that I would enter "lisp" state as follows:
evil-lisp-state-enter-lisp-state-on-command
ist
, upon executing any command with the leader<leader> .
Finally, I assumed that once in "lisp" state, I should be able to execute commands using the short (generally single key, sans leader) keybindings. But what's confusing me is that even in "lisp" state, the leader key sequence is required unless I've set
evil-lisp-state-global
. Sure enough, code inspection revealed thatevil-lisp-state-map
is populated if and only ifevil-lisp-state-global
ist
. I'm having trouble understanding the reason for this, especially given that the default setting ofevil-lisp-state-enter-lisp-state-on-command
ist
. What's the point in a "lisp" state that doesn't give you more convenient (i.e., sans leader) access to the evil lisp state commands? Why wouldn't you populateevil-lisp-state-map
(or evenevil-lisp-state-local-map
) unconditionally, and simply letevil-lisp-state-global
determine where you can access the leader?