diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-07-17 16:03:11 -0500 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2022-07-17 16:03:11 -0500 |
commit | 401ee7104fdef1dc6e9b588201d9a70570f0f873 (patch) | |
tree | f3ebab918214716434b24e0d01823e28eff16ee1 /shoshin-config.org | |
parent | c570284ace0ed5f1f254f9cc475a30f4be56af0f (diff) |
Fix: defvars at the top of the tangle with noweb-ref
Diffstat (limited to 'shoshin-config.org')
-rw-r--r-- | shoshin-config.org | 17 |
1 files changed, 13 insertions, 4 deletions
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: <<preamble>> + <<defvars>> + ;;; Package Management <<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 |