From 3093a0c9fcc5eb8a2f8af7defdf93cdacf5c437e Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 29 May 2023 14:10:54 +0200 Subject: [PATCH] outsourced customize code into separate file --- customize.el | 16 ++++++++++++++++ init.el | 18 ++---------------- 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 customize.el diff --git a/customize.el b/customize.el new file mode 100644 index 0000000..b3df9cd --- /dev/null +++ b/customize.el @@ -0,0 +1,16 @@ +;; If I ever use custom-group to customize a mode, then I create a +;; manual config section for it using the values, custom has added +;; here. So, in normal times this should be empty, but needs to exist. + +(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. + '(custom-safe-themes + '("7f1d414afda803f3244c6fb4c2c64bea44dac040ed3731ec9d75275b9e831fe5" default)) + '(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'") + '(package-selected-packages + '(blamer howm tiny tramp dictcc beacon which-key goto-last-change browse-kill-ring fringe-current-line swiper smex undo-tree fic-mode cmake-mode yaml-mode windresize web-mode use-package tablist solarized-theme smartparens rust-mode projectile persistent-scratch org-bullets markdown-mode magit iedit ibuffer-vc ibuffer-tramp hydra htmlize highlight-indentation go-mode eyebrowse elmacro dumb-jump dired-ranger dired-k dired-filter default-text-scale change-inner buffer-move)) + '(safe-local-variable-values '((ruby-indent-level 4))) + '(warning-suppress-types '((comp)))) diff --git a/init.el b/init.el index 69cf71b..e533f64 100644 --- a/init.el +++ b/init.el @@ -231,22 +231,8 @@ ;;; ** END OF MANUAL CONFIG -;; If I ever use custom-group to customize a mode, then I create a -;; manual config section for it using the values, custom has added -;; here. So, in normal times this should be empty, but needs to exist. - -(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. - '(custom-safe-themes - '("7f1d414afda803f3244c6fb4c2c64bea44dac040ed3731ec9d75275b9e831fe5" default)) - '(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'") - '(package-selected-packages - '(blamer howm tiny tramp dictcc beacon which-key goto-last-change browse-kill-ring fringe-current-line swiper smex undo-tree fic-mode cmake-mode yaml-mode windresize web-mode use-package tablist solarized-theme smartparens rust-mode projectile persistent-scratch org-bullets markdown-mode magit iedit ibuffer-vc ibuffer-tramp hydra htmlize highlight-indentation go-mode eyebrowse elmacro dumb-jump dired-ranger dired-k dired-filter default-text-scale change-inner buffer-move)) - '(safe-local-variable-values '((ruby-indent-level 4))) - '(warning-suppress-types '((comp)))) +(setq custom-file (expand-file-name "customize.el" tvd-config-dir)) +(load custom-file 'noerror) ;; ** done