spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
practicalli-john 2020-06-05T12:00:45.346300Z

I successfully did a pull request to the Spacemacs repository completely from within Spacemacs itself, no need to visit GitHub in the web browser, just using Magit and Forge and it worked really well. https://practicalli.github.io/spacemacs/source-control/magit/forge.html

practicalli-john 2020-06-05T12:02:17.347900Z

The pull request was to fix the use of doom-gruvbox-light which I am now using as my broadcast theme, it has nice icons and is very clean and uncluttered. The PR has already been merged into Spacemacs develop

nmkip 2020-06-05T12:06:43.348600Z

great !

nmkip 2020-06-05T12:13:14.352900Z

If I have someething like...

1 (ns foo.bar
2  (:gen-class)
3  (:require [clojure.data.json :as json]
4            [clojure.spec.alpha :as s]))
and I am in normal state somewhere in line 4, is there a key similar to o that does this? :
1 (ns foo.bar
2  (:gen-class)
3  (:require [clojure.data.json :as json]
4            [clojure.spec.alpha :as s]
5            |)) <--- insert mode here and move parens one line down?

nmkip 2020-06-05T12:15:28.355200Z

Another one:

1 (ns foo.bar
2  (:gen-class)
3  (:require [clojure.data.json :as json]
4  |         [clojure.spec.alpha :as s])) 
If my cursor is in line 4 (normal state) and I press D I get:
1 (ns foo.bar
2  (:gen-class)
3  (:require [clojure.data.json :as json]
4            ))
Is there a way to get:
1 (ns foo.bar
2  (:gen-class)
3  (:require [clojure.data.json :as json]))
or at least not force me to press backspace and delete a lot of times?

practicalli-john 2020-06-05T12:44:55.355500Z

C-j comes close and if you have align-forms-automatically then it kicks the text to the right location. There may be something better than this. I just use Evil insert mode and RET.

practicalli-john 2020-06-05T12:45:59.355700Z

dd will do what you seek. It will delete the line and any parens it should keep get pushed to the previous line.

practicalli-john 2020-06-05T12:46:24.355900Z

I believe this needs evil-cleverparens to work correctly.

2020-06-05T14:32:03.356100Z

and strict mode to be on. But yes that's how it works for me. There is also probably a way to set clj-format to run frequently which might fix this to. But that solution isn't very useful on anything other then your own proejcts where you control the formatting.

flefik 2020-06-05T17:18:43.356400Z

without any plugins DJ would work.

nmkip 2020-06-05T21:35:19.356600Z

dd works

nmkip 2020-06-05T21:36:40.356800Z

I also do Evil insert mode and RET , but that doesn't work if I am in the middle of line 4