Fork me on GitHub
#spacemacs
<
2019-02-12
>
caleb.macdonaldblack22:02:52

Hi, I'm new to spacemacs. After switching to my repl with ' s s. How can I make it go away without killing it?

ag22:02:51

what do you mean? you mean window to disappear? SPC w d you mean jump back to the clj buffer? , s s you want to “bury” buffer but keep the window split? M-x bury-buffer

👀 5
ag23:02:56

or because you pressed , s s, it created a split window and put cursor into repl buffer you simply want to restore your previous window config? Then you can do SPC w u

caleb.macdonaldblack01:02:59

@U0G75ARHC Yeah I wanted it to go away but not close my repl. SPC b d was what I was using and it wanted to close it. SPC w d is what I needed. Thank you

ag01:02:28

If I can suggest - watch “Spacemacs ABC” on youtube. It’s old but it’ll give you an idea about how Spacemacs features are structured.

ag01:02:26

then you can do the same thing yourself - explore keybindings starting with A…

practicalli-johnny02:02:31

You could also do SPC w u to undo the last window operation (i.e. opening the REPL buffer). Unless you are doing side effect code (e.g. println) I suggest evaluating code directly in the editor using , e f to evaluate the outer most expression you are in, or , e e to evaluate the expression before the cursor. I rarely use the REPL buffer directly, especially as I learnt how to debug simply with , d b. Note, if you are not using Vim normal state, then replace the , with M-RET in the keybindings above.

caleb.macdonaldblack06:02:14

Thanks for the tips. Yeah I'm using Vim but I'm aware of the emacs keybindings too. It's all quite overwhelming but I'll get there. Ill definitely take a look at that video @U0G75ARHC, I'll need it haha.

ag06:02:25

My pleasure @U3XCG2GBZ and welcome to the dark side, haha. Yes, Emacs can be quite overwhelming - just be patient. Even when things feel incredibly frustrating know this: “that frustration probably fixable and if you’re persistent - at some point you’ll find a way to fix it”. Don’t be shy asking questions - no matter how crazy your ideas may sound. I hope soon you will learn that even craziest of ideas can be done. You can address them here, in Spacemacs Gitter channel, r/emacs subreddit, in emacs.stackexchange - Emacsen are always nice and eager to help. Good luck

ag06:02:56

The point of me telling you to watch that video is not to learn all the keybindings - there are literally over thousand of those. No, I just want you to know what’s available there.

caleb.macdonaldblack06:02:59

Dw that makes sense. 🙂 thanks

practicalli-johnny11:02:26

@U3XCG2GBZ I'm also working on a book for Clojure development with Spacemacs, detailing the most common approaches and useful tools and commands as I discover them https://practicalli.github.io/spacemacs/

caleb.macdonaldblack11:02:03

@U05254DQM Ah yeah, I've actually stumbled across that a few times already through google. It's been really helpful.

practicalli-johnny00:02:41

Thanks for the feedback on the book. I updated a few of the other pages on installing too while I was updating the org layer name.