aboutsummaryrefslogtreecommitdiff
path: root/common/.config/emacs/force-custom-file.org
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-08-09 22:11:23 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-08-09 22:11:23 -0500
commite6e8ebe10aa40e5a3be2b94cdf3b324f3d3e52e0 (patch)
treeaca3b279520b76d918ce603d47981f1d23dbd1af /common/.config/emacs/force-custom-file.org
parent40f02bc8088ca93224bf65f083c4ab3b17eaf435 (diff)
split-dotfiles
Diffstat (limited to 'common/.config/emacs/force-custom-file.org')
-rw-r--r--common/.config/emacs/force-custom-file.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/.config/emacs/force-custom-file.org b/common/.config/emacs/force-custom-file.org
new file mode 100644
index 0000000..8b8a418
--- /dev/null
+++ b/common/.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