I just edited the variable org-M-RET-may-split-line
with easy costumize, saved and applied. I checked my dotfile right afterwards and noticed that
(custom-set-faces
'(default ((t (:foreground "#DCDCCC" :background "#3F3F3F")))))
was added to my dotfile. This already happened a few times to me when using easy customize. Any idea how to prevent this?
EDIT: I'm able to reproduce the issue:
- start spacemacs with
emacs
- open dotfile with
SPC f e d
SPC f1 python-shell-interpreter
- change value to
python3
- apply and save
- bottom of dotfile, this is what was added:
;; Do not write anything past this comment. This is where Emacs will ;; auto-generate custom variable definitions. (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. '(fci-rule-color "#383838" t) '(nrepl-message-colors (quote ("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3"))) '(org-M-RET-may-split-line (quote ((default)))) '(pdf-view-midnight-colors (quote ("#DCDCCC" . "#383838"))) '(python-shell-interpreter "python3") '(vc-annotate-background "#2B2B2B") '(vc-annotate-color-map (quote ((20 . "#BC8383") (40 . "#CC9393") (60 . "#DFAF8F") (80 . "#D0BF8F") (100 . "#E0CF9F") (120 . "#F0DFAF") (140 . "#5F7F5F") (160 . "#7F9F7F") (180 . "#8FB28F") (200 . "#9FC59F") (220 . "#AFD8AF") (240 . "#BFEBBF") (260 . "#93E0E3") (280 . "#6CA0A3") (300 . "#7CB8BB") (320 . "#8CD0D3") (340 . "#94BFF3") (360 . "#DC8CC3")))) '(vc-annotate-very-old-color "#DC8CC3")) (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. '(default ((t (:family "Office Code Pro" :foundry "NATH" :slant normal :weight normal :height 120 :width normal)))))
emacs -Q
(no init file)? That will likely help you get an answer. If you cannot, then try to bisect your init file to find out what seems to cause the behavior.M-x customize-face RET default RET
and select the "Revert..." button and choose the "Erase Customizations" option (to both remove it from the init file and -- importantly -- ensure that the current Emacs session will not add it back).