noctuid / lispyville

lispy + evil = lispyville
GNU General Public License v3.0
313 stars 23 forks source link

Can you add an option that makes 'p' and 'y' use the lispy safe versions? #38

Open NightMachinery opened 6 years ago

NightMachinery commented 6 years ago

Pasting code is very hard otherwise.

NightMachinery commented 6 years ago

I think 'y' is already safe. Using

(lispyville--define-key '(normal visual)
    "p" #'lispy-paste)

makes 'p' safe as well.

noctuid commented 6 years ago

I'm planning on adding a safe paste evil operator. If lispy-paste works well enough for you, you can use that for now. I don't usually copy any lisp with unmatched delimiters, so this isn't a huge issue for me, but I'll work on it when I get the chance.

NightMachinery commented 6 years ago

@noctuid The problem is that when for any reason there are mismatched delimiters, the only way I can fix it is using M-x insert-char which is arduous. Is there something I am missing here?

noctuid commented 6 years ago

You can also bind a key so that you can temporarily disable lispyville-mode or use C-q.