Every time I use the package manager it puts auto generated code in the init.el file:
(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.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
...
)
(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.
'(fringe ((t (:background "grey10"))))
...
)
This doesn't seem to be doing anything critical and only messes up my interface and theme colors.
Is there a way to stop Custom generated code?
Or at least this specific code (I'm assuming it's coming from the packages I have installed).
package-selected-packages
gets updated everytime. This is the default behavior. You can have two options:- make emacs stop generating custom info (not recommended) or have emacs put the custom generated messages into a separate file so that it's not cluttering yourinit.el
background: background
and every time I use the package manager it adds'(fringe ((t (:background "grey10"))))
to thecustom-set-faces
which makes my fringes black instead of white. And I have no idea how to stop it.(load custom-file :no-error :no-message)
. Also, there must be something in yourinit.el
file generating the fringe face incustom-set-faces
.custom-set-faces
in yourinit.el
, replace it with(set-face-attribute 'face-name nil <face settings go here>)
. That should solve the fringe problem