fix(emacs): move custom-set-variables out of the init.el

This is to stop the generated code from cluttering the init.el and it
can now be ignored by git
This commit is contained in:
Ade Attwood 2021-04-16 20:49:53 +01:00
parent 60509de1bf
commit 2562204827
3 changed files with 8 additions and 18 deletions

View file

@ -2,4 +2,5 @@ elpa
etc etc
quelpa quelpa
var var
lsp-cache lsp-cache
custom.el

View file

@ -126,20 +126,3 @@
(unless (server-running-p) (unless (server-running-p)
(message "Starting a server...") (message "Starting a server...")
(server-start)) (server-start))
(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])
'(doom-modeline-mode t)
'(package-selected-packages
'(string-inflection puppet-mode cue-mode evil-multiedit sh-mode dockerfile-mode docker hide-mode-line vterm browse-at-remote yasnippet yaml-mode which-key web-mode typescript-mode treemacs-projectile treemacs-magit treemacs-evil treemacs-all-the-icons smartparens scss-mode sass-mode rjsx-mode rainbow-delimiters quelpa-use-package prettier-js php-mode no-littering lsp-ui lsp-treemacs lsp-ivy ligature json-mode ivy-rich ivy-prescient general flycheck evil-surround evil-commentary evil-collection emmet-mode doom-themes doom-modeline counsel-projectile counsel-notmuch company-box base16-theme)))
(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.
)

View file

@ -59,3 +59,9 @@
(string-to-number (or (match-string 3 name) ""))) (string-to-number (or (match-string 3 name) "")))
) )
fn))) files))) fn))) files)))
;; Move the custom variables that are auto generated by emacs into
;; there own file. This will then prevent them from cluttering the
;; init.el and messing put git
(setq custom-file (concat user-emacs-directory "custom.el"))
(load custom-file 'noerror)