diff options
author | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-09-28 00:01:09 -0500 |
---|---|---|
committer | Jacob Janzen <jacob.a.s.janzen@gmail.com> | 2024-09-28 00:01:09 -0500 |
commit | b7e84fa6048007cda7e6c8226e28bc2db90f792a (patch) | |
tree | 170bcaff17d7aec0c6aac5807c7a5857dbd71def /common/.config/emacs/force-custom-file.el.org | |
parent | 7b2986845fde19db57703dad1105359913486abd (diff) |
add file extensions to files
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 |