When I install packages with M-x package-install
, it edits the ~/.emacs
file and adds the following content:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(paredit slime)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Is there a way to prevent package-install
from editing my ~/.emacs
file. I write ~/.emacs
by hand and keep it neat, so it is quite disconcerting when package-install
inserts this big blob of code in between. If package-install
really needs to maintain this code somewhere, can I not make it put this code in another file that I can load into ~/.emacs
?