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?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communitySet 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)
custom-file
, IMO. The Emacs doc should make it more prominent, and even provide for it being used by default, rather than letting Customize pollute the init file.