This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # babashka (7)
- # beginners (218)
- # boot (1)
- # chlorine-clover (2)
- # cider (36)
- # cljsrn (8)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (11)
- # clojure-france (1)
- # clojure-italy (5)
- # clojure-nl (5)
- # clojure-uk (24)
- # clojurescript (9)
- # conjure (16)
- # cursive (65)
- # datomic (76)
- # devcards (21)
- # emacs (1)
- # etaoin (1)
- # figwheel-main (47)
- # fulcro (37)
- # hyperfiddle (9)
- # java (2)
- # kaocha (1)
- # malli (11)
- # music (14)
- # observability (8)
- # off-topic (32)
- # re-frame (13)
- # reagent (2)
- # reitit (5)
- # ring (3)
- # shadow-cljs (40)
- # slack-help (17)
- # spacemacs (15)
- # tools-deps (5)
- # xtdb (16)
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)
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.
> 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.
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
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 ?
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).
what's the symbol for the any-state leader-key @jr0cket? is it just
@mccraigmccraig I believe so. Emacs (holy) keys are always available unless over-ridden by Evil states
My Spacemacs config is in this repo if you want to compare anything https://github.com/practicalli/spacemacs.d
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.
You mean using both of them simultaneously? I use Intelij mostly for DB navigator and ocassional browsing through Java source code (e.g. clojure.lang); and very rarely for debugging clojure itself I use spacemacs for most of my Clojure development.