Basically I would like to have (custom-set-variables ...) in a seperate file and for me to load that file.
This is just for the purpose of organisation of my init file.
How can I change the default location of custom-set-variables?
Basically I would like to have (custom-set-variables ...) in a seperate file and for me to load that file.
This is just for the purpose of organisation of my init file.
How can I change the default location of custom-set-variables?
Set the custom-file
variable in your init file.
C-hv custom-file
RET
Example of exact text you may want to place in your init.el
:
(setq custom-file (concat user-emacs-directory "custom.el"))
(load custom-file 'noerror)