Fork me on GitHub
#spacemacs
<
2020-06-05
>
practicalli-johnny12:06:45

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-johnny12:06:17

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

nmkip12:06:14

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?

practicalli-johnny12:06:55

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.

nmkip21:06:40

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

nmkip12:06:28

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-johnny12:06:59

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

practicalli-johnny12:06:24

I believe this needs evil-cleverparens to work correctly.

Drew Verlee14:06:03

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.

flefik17:06:43

without any plugins DJ would work.