This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-23
Channels
- # announcements (6)
- # beginners (54)
- # calva (9)
- # cider (2)
- # clj-kondo (26)
- # cljsrn (2)
- # clojure (49)
- # clojure-brasil (1)
- # clojure-dev (3)
- # clojure-europe (11)
- # clojure-italy (28)
- # clojure-nl (5)
- # clojure-serbia (1)
- # clojure-spec (4)
- # clojure-uk (182)
- # clojuredesign-podcast (2)
- # clojurescript (59)
- # clojurex (9)
- # cursive (26)
- # data-science (11)
- # datomic (40)
- # duct (1)
- # emacs (3)
- # events (4)
- # figwheel-main (2)
- # fulcro (7)
- # instaparse (1)
- # kaocha (2)
- # leiningen (25)
- # off-topic (3)
- # re-frame (36)
- # reagent (15)
- # shadow-cljs (87)
- # spacemacs (12)
- # sql (20)
- # tools-deps (8)
- # vim (1)
- # yada (40)
@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
https://practicalli.github.io/spacemacs/install-spacemacs/evil-structural-editing.html
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
.
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
evil-clever-parens is exactly what I was looking for https://github.com/luxbock/evil-cleverparens Thanks @jr0cket for sharing a link to it in https://practicalli.github.io/spacemacs/install-spacemacs/evil-structural-editing.html
I don’t need the lisp state any more while coding in Clojure.
I am a happy person
do you know about lispyville?
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)
I see. But I got used to it. Not sure I want to unlearn key bindings