Fork me on GitHub
#spacemacs
<
2017-06-30
>
alice18:06:01

I want to write a layer as a hook for clojure-mode that will add keybind functionality for smartparens and some custom functions, but I'm unsure of how to do that

alice20:06:55

Ok figured out the layer part but, how do I write a function to disable and enable the layer ;o

ag22:06:21

alice: checkout my layer based on official clojure-layer https://github.com/agzam/dot-spacemacs/tree/master/layers/ag-clojure maybe it will give you some ideas

practicalli-john13:07:38

@U0G75ARHC do you use ag-clojure instead of the clojure layer or do you include both in the dot-spacemacs/layers section?

practicalli-john14:07:59

Ah, I see in the layers.el of your package you include the clojure layer. So your ag-clojure layer will load in the clojure layer even if its not in the .spacemacs list of layers. Thats nice.

alice20:06:05

I have it in my .spacemacs, but it I ever wantt to disable it

practicalli-john21:07:41

alice: I assume if you want to disable your own layer you comment (or delete) the layer name from the layers list in .spacemacs