diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-01 17:42:59 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-10-01 17:42:59 -0500 |
commit | 7b0ea5cbdaaa5b8392777ad207c74cb27411eab1 (patch) | |
tree | 37a3438116ec3c84663133c820808ad9e2acf021 /common/.config/emacs/force-custom-file.el.org | |
parent | 7a347653dfad8c6c33791f7e72a4ec40b8230ac3 (diff) |
the big refactor
Diffstat (limited to 'common/.config/emacs/force-custom-file.el.org')
-rw-r--r-- | common/.config/emacs/force-custom-file.el.org | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/.config/emacs/force-custom-file.el.org b/common/.config/emacs/force-custom-file.el.org new file mode 100644 index 0000000..8b8a418 --- /dev/null +++ b/common/.config/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 |