Fork me on GitHub
#spacemacs
<
2016-06-17
>
zane16:06:58

What's the right way to set Spacemacs toggles globally on startup?

mahinshaw16:06:08

find the var that it refers to and (setq my-toggle t) or nil if you want it off, in your user-config.

zane17:06:56

@mahinshaw: So, the toggle in this particular case isn't a var: SPC t l calls toggle-truncate-lines.

zane17:06:02

I guess what I want instead is a mode-specific hook?

mahinshaw17:06:57

Well, you could put (setq truncate-lines nil) in your config, which will turn it off in all new buffers. If you want to to be mode specific, you need to add a hook to that mode.

mahinshaw17:06:06

sorry, toggle-truncate-lines just toggles truncate-lines

mahinshaw17:06:49

or better yet (set-default ‘truncate-lines t)

mahinshaw17:06:06

swap nil or t for your use case