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:
parent
60509de1bf
commit
2562204827
3 changed files with 8 additions and 18 deletions
3
site-modules/core/files/emacs/.gitignore
vendored
3
site-modules/core/files/emacs/.gitignore
vendored
|
|
@ -2,4 +2,5 @@ elpa
|
|||
etc
|
||||
quelpa
|
||||
var
|
||||
lsp-cache
|
||||
lsp-cache
|
||||
custom.el
|
||||
|
|
@ -126,20 +126,3 @@
|
|||
(unless (server-running-p)
|
||||
(message "Starting a server...")
|
||||
(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.
|
||||
)
|
||||
|
|
|
|||
|
|
@ -59,3 +59,9 @@
|
|||
(string-to-number (or (match-string 3 name) "")))
|
||||
)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue