Fork me on GitHub
Yehonathan Sharvit09:08:10

@jr0cket. I have two use cases for running cider command without leaving the lisp state: 1. When navigating a namespace stucturally I want to be able to go quickly to definition of vars with ,gg 2. When editing a namespace, I want evaluate several expressions subsequently in lisp state. Currently I have to do: H in lisp state, switch to normal state, ,ee, switch to lisp, H, switch to normal, ,ee


@viebel I can't help you I'm afriad, I just dont know how to change lisp state to do what you want. I enjoy using normal state for evaluation, insert state for writing code and lisp state for a little bit of structural editing, although I can do most of the structural editing in Evil normal mode as I use evil safe structural editing I never stay in lisp state as I find it easier to navigate parens and expressions in normal mode. H evil-cp-backward-sexp L evil-cp-forward-sexp M-l evil-cp-end-of-defun M-h evil-cp-beginning-of-defun M-l evil-cp-end-of-defun I also use , e f to evaluate the top level of the current form (expression), that way I do not need to jump to the end / next line after the expression to use , e e.

Yehonathan Sharvit12:08:29

You make me ask myself @jr0cket: why do I need the lisp state at all? I could add all the bindings I need for structural navigation to normal mode


Lisp-state is a transient state and is very useful as such for wrapping all of the smartparens commands in a consistent way for use with all languages. I use lisp-state occasionally when writing documents for example. As such I find it very valuable. Your comments suggest you want one mode for everything, which will cause tension if you use Spacemacs with the evil mode as it is based around multi-modal editing. If you do just want one state, you can switch to holy mode for a more relevant experience

Yehonathan Sharvit14:08:23

I don’t need the lisp state any more while coding in Clojure.

Yehonathan Sharvit14:08:29

I am a happy person


do you know about lispyville?

Yehonathan Sharvit17:08:18

Not sure what is the real added value over clever-parens


Clever parents seems not maintained for a while, also I recall some issues with clever-parens (but might be fixed already)

Yehonathan Sharvit13:08:05

I see. But I got used to it. Not sure I want to unlearn key bindings