Fork me on GitHub
#spacemacs
<
2015-11-16
>
alandipert18:11:25

anyone have a recipe/layer for changing font size across all buffers w/out restart?

jeff.terrell18:11:40

No, but do you know about the SPC z menu?

alandipert19:11:36

i do... i ended up resurrecting some functions from my old emacs config, will gist

jeff.terrell19:11:24

Nice, I'll be interested to see. BTW, I'm surprised you have an old emacs config. I thought you were a vim guy. simple_smile

alandipert19:11:30

i did vim for a few years, then emacs... now both and loving it

jeff.terrell19:11:37

Ha, fair enough. I'm enjoying the fusion lately too. And thanks for sharing the functions, that's cool.

mahinshaw19:11:33

turns out they have a micro state for that

alandipert19:11:10

that works, but not across all buffers

mahinshaw19:11:14

sorry, thats not all buffers

jeremyraines19:11:00

I am trying to wrap the the adjust-parens package in a private layer, but it doesn’t appear in the describe-mode list of the modes where I expect it. I never saw it install after I first attempted to require it as a mode. Can someone help me see what I’m doing wrong?

jeremyraines19:11:51

here’s the relevant part of the layer:

jeff.terrell20:11:46

Maybe restart spacemacs and look at your *Messages* buffer?

jeremyraines20:11:06

no errors, but nothing about loading the layer

jeremyraines20:11:48

I also tried editing this in the spacemacs config: ` dotspacemacs-configuration-layer-path '("~/.emacs.d/private/adjust-parens/") `

jeremyraines20:11:25

also tried just ~/.emacs.d/private/

alandipert20:11:32

@jeremyraines: i take it you saw https://github.com/syl20bnr/spacemacs/tree/master/private ? i have yet to do any of this myself, want to tho

jeff.terrell20:11:43

I don't think you should need to edit dotspacemacs-configuation-layer-path if you put it in ~/.emacs.d/private/adjust-parens/.

jeff.terrell20:11:57

You have added your private layer to dotspacemacs-configuration-layers in your ~/.spacemacs, right?

jeremyraines20:11:19

ok, i was wrong, there is a message about loading it

jeremyraines20:11:26

but it is not active in clojure mode

jeff.terrell20:11:45

Oh, did you add a hook to load it when clojure mode is loaded?

jeremyraines20:11:10

I thought so — does that go in the layer though?

jeff.terrell20:11:11

Ah, I think you need to rename the init function to init-adjust-parens or something.

jeff.terrell20:11:02

Out of curiosity, did you use the approach @alandipert linked to to create your layer? I'm curious whether that approach is smart enough to fill in that function name for you.

jeremyraines20:11:02

or wait, yeah, i did

jeff.terrell20:11:19

You might also consider using the use-package macro instead of directly calling those functions in your init function. That way, you'd have things only init'd when necessary.

jeremyraines20:11:21

I must’ve just blasted through the prompt though

jeff.terrell20:11:23

You're welcome.