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-02-27T00:49:54.031900Z

Thanks, that's useful to know.

plexus 2020-02-27T07:14:25.032300Z

I also noticed that , s s is gone? used to use this all the time to switch to the REPL

aisamu 2020-02-27T12:10:46.035700Z

It's now , s a!

plexus 2020-02-27T12:33:20.035900Z

Does that one have a mnemonic?

aisamu 2020-02-27T12:43:38.036100Z

It usually goes , s s -> undefined -> "(a)w, crap".

practicalli-john 2020-02-27T13:49:49.042600Z

Its the same keybinding convention as toggling between source and test, i.e. SPC p a and other toggles I found in Spacemacs. The first s in , s s nemonic is send-to, I never found out what the second s stood for.

plexus 2020-02-28T07:58:32.058500Z

Hmmm so maybe "alternate"

plexus 2020-02-27T07:17:48.032900Z

also pretty bummed that , ' / , " / , & are gone...

plexus 2020-02-27T07:18:57.033500Z

@jr0cket what are the mnemonics for , s j j and , s j m? does j and m stand for anything?

practicalli-john 2020-02-27T13:51:28.042800Z

We couldnt agree on what to use, so we used the same as CIDER itself. I beleive j is java and m is multiple (multiple repls) and s is javascript.

Mario C. 2020-02-27T17:35:47.047500Z

Is there a way to find a list of commands and look at the mnemonics used?

practicalli-john 2020-02-27T18:47:44.051500Z

These are the conventions that should be applied across all layers for keybindings and other aspects. I had my first PR rejected because it didnt fit the conventions. All the keybindings are in the code, so easily searchable.

achikin 2020-02-27T10:08:11.033900Z

Does anybody use clj-refactor?

achikin 2020-02-27T10:08:21.034200Z

I’m trying to find usages in cljs code

achikin 2020-02-27T10:08:44.034500Z

Call the command

achikin 2020-02-27T10:08:50.034700Z

Then the message is shown

achikin 2020-02-27T10:08:54.035Z

To perform this op the project needs to be evaluated.
  Analyzing a large project might take a while: hit C-g to abort.
  (Set cljr-warn-on-eval to nil to analyze the project without warning)
  Do you want to proceed? (y or n) y

achikin 2020-02-27T10:09:03.035300Z

I press y and nothing happens

achikin 2020-02-27T10:09:22.035600Z

No messages shown, nothing

practicalli-john 2020-02-27T13:11:16.041400Z

@achikin Assuming you are refactoring a name in a project, I use helm-swoop, SPC s s or SPC s p to search, and helm-ag-edit, C-c C-e and iedit for refactoring, rather than using clj-refactor. There is work to migrate functionality from clj-refactor to clojure-mode but it needs help. I don't know if there are any plans to fix bugs with clj-refactor itself. I stopped using clj-refactor a while ago as it caused issues irregularly.

achikin 2020-02-27T13:47:34.041900Z

@jr0cket benedek  [2:05 PM] no support for cljs in terms of that feature unfortunately

practicalli-john 2020-02-27T13:48:05.042500Z

Yes, I believe cljs support is poor/non-existing in terms of clj-refactor. I think cljs support is another goal for the cljs-refactor migration (as well as keeping up to date with changes in CIDER itself)

practicalli-john 2020-02-27T17:09:50.047Z

New PR: https://github.com/syl20bnr/spacemacs/pull/13320 This is adding a function that will jump to the end of the current line and evaluate the last s-expression. Its a function that has been present in Emacs Lisp mode for a long time, so I've also added it to Clojure. It also should negate the need to add any code to change Evil behavior by jumping past the last character on the line. , e $ or , e l will call spacemacs/cider-eval-sexp-end-of-line and show the results inline in the source code editor (just like , e e or , e f ) Any comments welcome here or on the PR. Thank you.

👏 2
➕ 1
Mario C. 2020-02-27T17:38:20.049200Z

Is there a way to "marry" two buffers and a way to switch between married buffers? Id like to be able to use one layout, marry buffers, and cycle through them.

Mario C. 2020-02-27T17:43:25.051400Z

Last question, since I am already on that topic, is there a way to do this; Say you have a window-setup and you focus on a buffer, I would like to focus on it, as in make it the only buffer in the frame but then once I am done with the focus, id like to go back to the previous window set-up. Hope that makes sense

practicalli-john 2020-02-27T18:52:57.053400Z

@mario.cordova.862 not entirely sure I understand your questions, have you looked at layouts? SPC l menu allows you to create layouts, which will group most commands to just working with the buffers in that layout. https://practicalli.github.io/spacemacs/working-with-projects/layouts.html https://develop.spacemacs.org/layers/+spacemacs/spacemacs-layouts/README.html

Mario C. 2020-02-27T19:34:21.054800Z

Yes, I use layouts. I was wondering if there was a way I can group buffers within a layout and cycle through those groups

practicalli-john 2020-02-27T22:26:47.058200Z

I don't know if its what you want, but you could have a workspace for each buffer in your layout. Or keep it simple and use SPC b n and SPC b p