spacemacs/layers/+distributions/spacemacs-base
syl20bnr e699f1816a core: wrap Emacs custom in a dotfile new function
New function `dotspacmacs/emacs-custom-settings` wrapping Emacs
custom settings sexps.
`dotspacemacs/emacs-custom-settings` is called just after the user
configuration (`dotspacemacs/user-config`)

Customize cannot write its auto-generated sexps inside a function, to
accomplish this we trick Emacs by setting the custom file to a file
in `.cache` directory, the path to this file is defined by the variable
`spacemacs--custom-file`. At the startup of Emacs we read this file
to insert its content inside the function
`dotspacemacs/emacs-custom-settings` in the dotfile, this is done in the
function `spacemacs/write-custom-settings-to-dotfile`.

I don't think we need to write the custom settings to the dotfile when
exiting Emacs as well, since we do it at startup at the very beginning
(i.e. before actually loading the dotfile) we should be OK.

Fixes #5170
2016-11-22 22:55:36 -05:00
..
local Change default fringe color for centered-buffer-mode. 2016-11-22 20:41:45 -05:00
config.el core: wrap Emacs custom in a dotfile new function 2016-11-22 22:55:36 -05:00
funcs.el Emit error if can't toggle window layout 2016-11-15 09:26:22 +02:00
keybindings.el Move SPC b m to kill other buffers to SPC b C-d 2016-11-20 13:27:16 -05:00
packages.el Move SPC p C-g to SPC p G 2016-10-28 13:44:29 +02:00