Fork me on GitHub
#spacemacs
<
2018-05-07
>
fedreg15:05:30

Thanks! Exactly what I needed. I didn't even bother to check the docs first.... 😞. Appreciate the help!

pablore12:05:09

Also hitting SPC m on a .org buffer should open all the commands available

Drew Verlee17:05:50

where in my .spacemacs file (assuming thats the right place) would a call to the use-package macro go? and why? thanks in advance~

Drew Verlee17:05:42

hmm i’m guessing use-package is already installed in spacemacs? i’m guessing it provides the package install function im so fond of.

Drew Verlee17:05:12

I’m somewhat amused that this tool on literate programming https://github.com/stardiviner/ob-clojure-literate is oddly confusing to install for someone that doesn’t have all the context it seems to assume around you knowing how to install things -_-

Drew Verlee17:05:12

Like, i assume i’m supposed to copy that .el file somewhere into my .emacs.d directory

ag17:05:41

If you just want to include a single package you can use dotspacemacs-additional-packages

ag17:05:27

with Spacemacs you don't need to copy anything almost ever into your .emacs.d

Drew Verlee17:05:27

@ag where does `dotspacemacs-additional-packages pull from? Does it grab files from things hosted on the elpa repo? That El file above isn't hosted anywhere but github that I can see

ag17:05:50

you can do something like this:

dotspacemacs-additional-packages '((cider :location (recipe :fetcher github
                                                            :repo "clojure-emacs/cider"
                                                            :commit "8a9eab32646abcaaf31fe83b2d897c01971b98f1"))

ag17:05:06

replace things for values relevant and voila

Drew Verlee17:05:40

gotcha! that makes sense.

ag17:05:17

I believe you can omit :commit key - it would then pull latest from master

Drew Verlee17:05:55

Yea. The important thing is that it can pull from github if i tell it to. Which makes sense, just not in the first couple examples i saw.

ag17:05:09

I bet you end up building your own Clojure layer sooner or later, so probably it's the best to add this to the layer, take a look at example here: https://github.com/agzam/dot-spacemacs/tree/master/layers/ag-clojure

ag17:05:41

although I'm not sure if that package belongs to a custom clojure or custom org layer

ag17:05:55

anyway I have both.

ag17:05:19

so you can see that it's possible to have Spacemacs layers that depend on other layers