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-07-07T10:34:38.055400Z

I've created a pull request to add a few clojure-mode refactor keybindings for namespaces. As its clojure-mode these work even without the REPL running. The key bindings should not conflict with clj-refactor (if that projects documentation is correct). SPC m r a n insert a namespace form at the beginning of the buffer SPC m r a N insert a namespace form at point SPC m r s u sort included namespace names within the ns form (e.g. sort required namespaces by alphabetical name) https://github.com/syl20bnr/spacemacs/pull/13755

flefik 2020-07-07T11:03:57.056100Z

wouldn't it be nicer if the linter did the last item for you?

practicalli-john 2020-07-07T11:18:19.059500Z

linters are intended to show issues rather than change code and I would prefer it remained that way 🙂 Refactor tools are intended to change code. I also prefer to sort namespaces by purpose, especially as the number of referred namespaces increases. It makes refactoring a (legacy - i..e anything I haven't worked on for a few weeks) project so much easier.

flefik 2020-07-07T11:25:38.061600Z

> linters are intended to show issues rather than change code and I would prefer it remained that way having the dubious pleasure of working with golang lately, the only saving grace is the fact that the linter fixes lots of formatting and small issues for you automatically on file save.

practicalli-john 2020-07-07T11:30:17.062200Z

That sounds really annoying to me I am afriad

practicalli-john 2020-07-07T11:31:12.062400Z

I pushed some docs on the new keybindings to the Practicalli Spacemacs book, although you will have to grab the PR or wait for it to be merged to use the key bindings. The commands already exist though. https://practicalli.github.io/spacemacs/refactor/namespace-definitions.html

mccraigmccraig 2020-07-07T14:15:39.065Z

i just found myself want to access the kill-ring from within the minibuffer (for replace-string), and while i could use M-x helm-show-kill-ringi wasn't able to use the spacemacs menu M-SPC r y (i'm using holy-mode with a M-SPC leader key) - anyone have any idea why this should be ?

practicalli-john 2020-07-07T15:10:06.071600Z

@mccraigmccraig Running SPC SPC replace-string followed by M-m r y I do get helm showing the kill ring. I have the default M-m as the leader key that works in any state, holy or evil. Using Spacemacs develop and packages updated in the last couple of days. C-y pulls the latest value from the kill ring and puts it in the mini-buffer or in a helm prompt. There have been a few changes in helm over the last month. If you updated Emacs packages then that may have changed something (just a guess).

mccraigmccraig 2020-07-07T15:37:15.072500Z

what's the symbol for the any-state leader-key @jr0cket? is it just dotspacemacs-emacs-leader-key ?

practicalli-john 2020-07-07T16:57:52.073800Z

@mccraigmccraig I believe so. Emacs (holy) keys are always available unless over-ridden by Evil states

practicalli-john 2020-07-07T16:59:17.074800Z

My Spacemacs config is in this repo if you want to compare anything https://github.com/practicalli/spacemacs.d

mccraigmccraig 2020-07-07T17:05:00.075500Z

thanks @jr0cket

2020-07-07T21:24:41.076200Z

Does anyone use intelliji and spacemacs? I'm going to setup intelliji this weekend so i can see how the java interopt changes my workflow.

2020-07-09T15:09:02.076700Z

Yes, i suppose i mean simultaneously. I'm going to try the work flow your suggesting. Though now that i'm getting more comfterable with whats possible, it seems i'll need to use google and javadocs enough that intelliji isn't as clear a win as I thought for interopt.