From 0b142907e671df88fb7c5ddbedc69dc32d00ed03 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Fri, 19 Jul 2024 10:04:12 +1200 Subject: [PATCH] emacs: move Custom declarations to custom-file --- .emacs.d/init.el | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1b5a0d5..86a5aa4 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -215,20 +215,9 @@ (set-face-attribute 'font-lock-comment-face t :slant 'italic) (set-face-attribute 'font-lock-keyword-face t :slant 'italic) -(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. - '(custom-button ((t (:background "#181825" :foreground "white" :box (:line-width (1 . 1) :color "#11111b" :style flat-button))))) - '(custom-button-mouse ((t (:background "#11111b" :foreground "white")))) - '(custom-button-pressed ((t (:inherit custom-button-mouse :box (:line-width (1 . 1) :color "#11111b"))))) - '(help-key-binding ((t (:inherit fixed-pitch :background "#181825" :foreground "#89b4fa" :box (:line-width (-1 . -1) :color "#11111b"))))) - '(info-menu-star ((t nil))) - '(info-xref ((t (:inherit link :background "#181825" :foreground "#cdd6f4")))) - '(link ((t (:foreground "#89b4fa" :underline t)))) - '(widget-field ((t (:extend t :background "#181825" :box (:line-width (1 . 1) :color "#11111b")))))) -(custom-set-variables) +;; custom +(setq custom-file "~/.emacs.d/custom.el") +(load custom-file) ;; catppuccin theme (package-install 'catppuccin-theme)