Fork me on GitHub
#spacemacs
<
2018-07-30
>
Chase01:07:09

i'm playing around with the Learn Reagent tutorial just for fun and it uses shadow-cljs but I don't seem to have this command: M-x cider-create-sibling-cljs-repl Any advice on how to get that going? I'm trying to use the instructions provided here:https://shadow-cljs.github.io/docs/UsersGuide.html#_launch_the_clojurescript_repl

practicalli-johnny16:07:26

@U9J50BY4C the M-x cider-create-sibling-cljs-repl is my Spacemacs setup which is running CIDER 18-snapshot, specifically .emacs.d/elpa/25.3/develop/cider-20180509.109/

practicalli-johnny16:07:50

I use the develop branch of Spacemacs, which will pick up the latest snapshots of Cider and other packages when I do an Update Packages from the Spacemacs home page. If you are using Spacemacs develop then run Update Packages and you should have that command

practicalli-johnny16:07:29

If you are using the master branch of Spacemacs, the default, you may only have earlier (stable) versions of Cider. If you are not sure which Spacemacs branch you are using, then

cd ~/.emacs.d/
git branch

Chase16:07:31

thanks for the info! I'm on the default but am not opposed to the develop branch at all as long as it's reasonably stable to learn clojure with. i'll go find out how to switch to the develop branch now!

Chase16:07:47

git checkout -b develop origin/develop I guess this is all i need to do so that is great.

pablore17:07:47

sadly the stable branch of spacemacs is very outdated in many packages

pablore17:07:08

but develop version is stable enough

ag18:07:37

I can attest to that: I've been using Spacemacs' develop branch for over 3 years now. Number of times something broke to the point that i had to spend more than 15 minutes to fix it? Exactly four. Ironically things get fixed faster on develop

Chase19:07:06

that is good to hear. it's funny though i'm having a couple issues already. SPC f t to bring up neotree is very glitchy, sometimes splitting my main window. And there is a package ac-ispell that it can't find but it tries to load every time i open emacs. and i still don't have that cider-create-sibling-cljs-repl.

Chase19:07:22

do you think i should move down to stable emacs 25? I'm on emacs 26 right now.

Chase19:07:11

hmmm. i did however have a cider-connect-sibling-cljs and that worked even though i don't know how i created it in the first place. and neotree is working fine now! thanks folks.

Chase19:07:30

the 30 sec start time because it's looking for that ac-ispell package is still annoying though.

ag19:07:07

I generally, would suggest not using Neotree. IMO It's way too buggy and unpredictable. Have you considered Treemacs instead? I personally use direx.

Chase19:07:11

i'll look into those options. i have basic vim text manipulation skills but not much else in terms of workflow and such in vim, emacs, emacs+evil, spacemacs, cider...lol

ag19:07:16

if you get over the basics (buffers vs tabs), fear of having to write elisp, etc. very quickly you find that Emacs can Vim better than Vim. In addition to that it lets you do quite mindblowing things.

Chase20:07:21

oh yeah, i'm sold on emacs+evil for sure. spacemacs seems great but quite heavy coming from vim. but i can't imagine i'll be able to roll my own config of emacs+evil seamlessly linked to clojure(script)/cider any better (and with this kind of ui). and i can play with org mode and magit too. doing all that on my own seems daunting.

ag20:07:09

Take things À la carte. Of course it would feel like insurmountable mountain. Don't rush. If you started using Org-mode, just start writing down every single problem you encounter. Slowly you will fix many of them, and some of them may not even need fixing.

Chase20:07:26

definitely. i enjoyed setting up my vimrc but it was minimal. with emacs+evil, i think i would basically want it to be like spacemacs anyways. the documentation is good too and you folks and the gitter are super helpful. i've read of veteran emacs users fed up with maintaining their huge configs and preferring spacemacs to that anyways.

Chase20:07:37

plus i need to focus on writing and learning software development! i lose focus on that sometimes playing with my tooling

ag20:07:09

investing in tooling never felt so good and practical. Because I'm sure 10-15 years from now things I improve in my workflow say regarding org-mode. I'm pretty confident that some of it still will be relevant

ag20:07:58

besides at some point you realize, when you have to do something, it's so easy to write a function. e.g. I realized that very often when I type a ticket number, I really like to have it as a url. It took me literally 10 minutes to write a function for that

Chase20:07:11

and what keeps you on spacemacs vs rolling your own config?

ag20:07:24

it just works for me now. besides, it is largely my "own config". It consists of my customized Spacemacs layers

ag20:07:28

For many months I have tried building my own evil based config. A few times I've announced .init file bankruptcy and have started over.

ag20:07:40

then I found Spacemacs.

ag20:07:12

I learned a lot more stuff about Emacs. Spacemacs sped up my progress

ag20:07:59

at this point I do feel very comfortable - If I ever have to roll my own config, I can do it. But Spacemacs works for me and makes sense for me. Until it stopes making sense... I will use it

Chase20:07:26

makes sense to me. when i was researching it seemed people thought it was too hard to make their own customization on top of spacemacs but i'm suspecting that might be a little overstated.

ag20:07:15

it is absolutely wrong assessment. Spacemacs feels big for a reason. It's opinionated and bloated, yes. But nothing stopping anyone from removing things they don't want. Spacemacs doesn't make Emacs less customizable.

practicalli-johnny15:07:33

@U9J50BY4C for a vim driven file explorer, i use ranger. its lightweight and has file previews https://practicalli.github.io/spacemacs/working-with-projects/ranger.html

Mario C.22:07:25

How do I switch between a window to the neotree?

rustam.gilaztdinov22:07:16

space 0 for tree, space 1 to window

rustam.gilaztdinov22:07:09

Or maybe space 2 or 3, depends on how much windows you have

rustam.gilaztdinov22:07:05

Also, in tree you can type ? and see hints to work with it

Mario C.22:07:35

I just started using spacemacs recently

ag23:07:39

@mario.cordova.862 I don't recommend using neotree... try treemacs or direx. more time you waste trying to tame neotree - the more it frustrates you

4
eggsyntax23:07:44

@ag what would be a reason to choose one of those two over the other? I’m up for trying one, but possibly not both. Or if you don’t feel like doing the full explanation, just tell me which one you like better 😉

ag23:07:41

I personally use Direx (that one I discovered before Treemacs). It is a simple tree, with output similar to the command line tool with the same name.

👍 4
ag23:07:12

Treemacs is nice, much nicer than neotree

ag23:07:15

just include treemacs layer to dotspacemacs-configuration-layers

✔️ 4
eggsyntax23:07:57

And it looks like treemacs-evil if you’re the evil sort? Or is that automatic w the spacemacs layer?

ag23:07:26

just include the layer

eggsyntax23:07:45

Cool, thanks! I’ll make the switch this evening & see how it goes 🙂

eggsyntax23:07:26

@mario.cordova.862 in my experience it’s usually the best bet to just do whatever @ag recommends 😆

4
ag23:07:50

first thing you'd probably would like to change is the icon-sizes in treemacs. You can use M-x treemacs-resize-icons

metal 4
ag23:07:09

Guess I'm using both now 😉

ag23:07:57

I like direx, because it is clean and it doesn't "pretend" to be a special buffer

ag23:07:09

extending it super-easy

ag23:07:28

who needs icons? what is it... some sort of VSCode or something?

eggsyntax23:07:26

Here's an extremely terse summary of the treemacs advantages over neotree for anyone else who's interested: https://www.reddit.com/r/emacs/comments/7249jt/comment/dnfqtj1

👍 4