aboutsummaryrefslogtreecommitdiff
path: root/config/emacs/force-custom-file.org
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-08-07 22:34:10 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-08-07 22:34:10 -0500
commit3832e2c085e5137f78cdf5f0c1e9cf273ffbc338 (patch)
treea2bd6bd1119aacbaa23ede55ad3ff1c46a76ea57 /config/emacs/force-custom-file.org
parent05a87bb0eb20345694a09c9e5e5930028c0c0339 (diff)
complete my configuration migration
Diffstat (limited to 'config/emacs/force-custom-file.org')
-rw-r--r--config/emacs/force-custom-file.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/emacs/force-custom-file.org b/config/emacs/force-custom-file.org
new file mode 100644
index 0000000..8b8a418
--- /dev/null
+++ b/config/emacs/force-custom-file.org
@@ -0,0 +1,8 @@
+#+title: Emacs Force the Usage of a =custom.el= File
+
+Force the usage of a =custom.el= file for customizations instead of placing them in =init.el=.
+#+begin_src emacs-lisp :tangle ~/.config/emacs/force-custom-file.el :mkdirp yes
+ (setq custom-file (concat user-emacs-directory "custom.el"))
+ (when (file-exists-p custom-file)
+ (load custom-file))
+#+end_src