aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-07-04 19:42:54 -0500
committershoshin <shoshin@cicadas.surf>2022-07-04 19:42:54 -0500
commitce7ae17b5d116f59b8e9139b467bc4c2bff5ed65 (patch)
tree505e3683b25fc07af12c912258e1e924007f1dab
parent3d34ea8fe523bce774b01433f81fa98f034e22c0 (diff)
Add: [emacs] preamble for separate custom-file
-rw-r--r--shoshin-config.el5
-rw-r--r--shoshin-config.org19
2 files changed, 22 insertions, 2 deletions
diff --git a/shoshin-config.el b/shoshin-config.el
index 599c28f..e57b2b5 100644
--- a/shoshin-config.el
+++ b/shoshin-config.el
@@ -1,5 +1,8 @@
;;; shoshimacs.el --- Beginner's Mind Config -*- lexical-binding:t -*-
+(setq custom-file "~/.emacs.d/shoshimacs-custom.el")
+(load custom-file)
+
;;; Package Management
(when (< emacs-major-version 28)
(package-initialize)
@@ -118,7 +121,7 @@
(mapc #'package-install my-themes-to-install)
(defvar my-chosen-themes
- '(cyberpunk dracula leuven modus-operandi modus-vivendi
+ '(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.")
(load-theme (seq-random-elt my-chosen-themes))
diff --git a/shoshin-config.org b/shoshin-config.org
index 429c75c..0fefc03 100644
--- a/shoshin-config.org
+++ b/shoshin-config.org
@@ -34,6 +34,8 @@ is tangled into the resulting elisp file:
#+begin_src emacs-lisp :tangle yes :noweb no-export
;;; shoshimacs.el --- Beginner's Mind Config -*- lexical-binding:t -*-
+ <<preamble>>
+
;;; Package Management
<<package-management>>
@@ -59,6 +61,21 @@ is tangled into the resulting elisp file:
<<user-interface>>
#+end_src
+** Preamble
+:PROPERTIES:
+:header-args:emacs-lisp+: :noweb-ref preamble :noweb-sep "\n\n" :results silent
+:END:
+
+This section covers initialization that works best before anything else is
+configured. For example, it is much easier to manage the "custom variables"
+if they are not automatically tacked onto your initialization file. You can
+set and load a separate file to keep it clean:
+
+#+begin_src emacs-lisp
+ (setq custom-file "~/.emacs.d/shoshimacs-custom.el")
+ (load custom-file)
+#+end_src
+
* Package Management
:PROPERTIES:
:header-args:emacs-lisp+: :noweb-ref package-management :noweb-sep "\n\n" :results silent
@@ -639,7 +656,7 @@ candidates to ~consult-themes~.
#+begin_src emacs-lisp
(defvar my-chosen-themes
- '(cyberpunk dracula leuven modus-operandi modus-vivendi
+ '(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.")
(load-theme (seq-random-elt my-chosen-themes))