From 401ee7104fdef1dc6e9b588201d9a70570f0f873 Mon Sep 17 00:00:00 2001 From: Grant Shangreaux Date: Sun, 17 Jul 2022 16:03:11 -0500 Subject: Fix: defvars at the top of the tangle with noweb-ref --- shoshin-config.org | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'shoshin-config.org') diff --git a/shoshin-config.org b/shoshin-config.org index 9c05ae3..c0f143e 100644 --- a/shoshin-config.org +++ b/shoshin-config.org @@ -36,6 +36,8 @@ is tangled into the resulting elisp file: <> + <> + ;;; Package Management <> @@ -253,7 +255,7 @@ to go away. 1 delete-other-windows a apropos b consult-buffer - c my-config + c my-configuration d embark-act e eshell f find-file @@ -769,11 +771,14 @@ to keep it concise, i'll define a special variable to hold the theme packages i'd like to install anytime this config is loaded on a system where they are not there. then i can ~mapc~ #'package-install over the list of themes. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :noweb-ref defvars (defvar my-themes-to-install '(cyberpunk-theme dracula-theme nano-theme) "List of themes to install when loading shoshimacs config.") - (mapc #'package-install my-themes-to-install) +#+end_src + +#+begin_src emacs-lisp + (load-theme (seq-random-elt my-chosen-themes)) #+end_src *** chosen theme list and random loading on init @@ -783,11 +788,15 @@ and the ones i specifically install i'd like to keep in a list of "chosen" ones. i can load one at random if i please, and perhaps provide it as candidates to ~consult-themes~. -#+begin_src emacs-lisp +#+begin_src emacs-lisp :noweb-ref defvars (defvar my-chosen-themes '(cyberpunk dichromacy dracula leuven modus-operandi modus-vivendi nano-dark nano-light tango tango-dark) "List of themes I prefer for narrowing and random selection.") +#+end_src + +#+begin_src emacs-lisp + (mapc #'package-install my-themes-to-install) (load-theme (seq-random-elt my-chosen-themes)) #+end_src -- cgit v1.2.3