aboutsummaryrefslogtreecommitdiff
path: root/nixos/.flake/home/programs/emacs/force-custom-file.el.org
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-28 11:03:57 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-09-28 11:03:57 -0500
commitda7a932923fb6ad4110c7ec144cb60ef2b7b2796 (patch)
tree8013d396da98308f0484a6f7ab64f8c4dea63481 /nixos/.flake/home/programs/emacs/force-custom-file.el.org
parent56e6cb39a09835d120ac9ee879f7c3a57d71ab73 (diff)
merge emacs into the hive
Diffstat (limited to 'nixos/.flake/home/programs/emacs/force-custom-file.el.org')
-rw-r--r--nixos/.flake/home/programs/emacs/force-custom-file.el.org8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/.flake/home/programs/emacs/force-custom-file.el.org b/nixos/.flake/home/programs/emacs/force-custom-file.el.org
new file mode 100644
index 0000000..8b8a418
--- /dev/null
+++ b/nixos/.flake/home/programs/emacs/force-custom-file.el.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