syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.65k stars 4.89k forks source link

Enhance evil-lisp-state #1955

Closed tuhdo closed 4 years ago

tuhdo commented 9 years ago

Currently, getting into the lisp state takes too many keys (4 keys for Emacs to C-c k <something>). That's why I'm using Lispy. We can make it better:

(when (or (equal (user-full-name) "tuhdo")
            [](equal (user-full-name) "tudo"))
    (smartparens-global-strict-mode))

Point is []. When I use lispy-knight-up, it jumps to the parenthesis at when and when use lispy-knight-down, it jump to the parenthesis on the next line.

syl20bnr commented 9 years ago

It seems that 4 keys is a lot but it is not in practice, the issue is that evil-lisp-state is meant to be used in Vim style, it has never been thought to be used in Emacs style.

In Vim style the user is most of the time in normal state, then SPC k can really be viewed as one keystroke once the muscle memory is done. Once SPC k is pressed we are in lisp state so it is not required anymore for the following manipulations.

What I want to experiment is to use Lispy but with the following changes:

There is a package that partly does this I believe, we should give it a try.

sooheon commented 9 years ago

I like the idea of extending lispy with a more vi compliant key theme (which could be PRed upstream as a drop in alternative to the special lispy key theme. Curious what is the package that partly does this?

kingcons commented 9 years ago

This might be the package @syl20bnr was thinking of: https://github.com/bcarrell/evil-lispy

justbur commented 8 years ago

@syl20bnr suggested in chat that for holy-mode users we could have M-m k toggle lispy. What do you all think of that?

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!