Fork me on GitHub
#spacemacs
<
2019-09-04
>
drewverlee17:09:36

if i enter paredit mode i can't get an invalid structure. is there another way to do that?

practicalli-john18:09:08

@drewverlee Copy paste is the best way to get an invalid structure. Was an invalid structure what you wanted ?

practicalli-john18:09:31

If you toggle of safe structural editing off, then you can also create an invalid structure in Evil style editing (although I have only tried that with smartparens in strict mode

drewverlee18:09:59

I wasn't clear. I'm saying, I'm using lisp state, but when I exit that I can still mess up the structure. What's the best way to disallow that globally.

drewverlee18:09:59

Actually, evil cleaver parens should help with that. Maybe I didn't have it on.

ag18:09:02

dotspacemacs-smartparens-strict-mode

ag18:09:50

M-x check-parens helps too

drewverlee18:09:02

Ok, thanks I'm looking at the right tools. I must not have enabled it correctly.

ag18:09:49

sometimes you need to enter unbalanced paren intentionally, then you can do in Spacemacs in insert mode C-v and then insert a paren. In vanilla Emacs that’s bound to C-q

👍 1