diff options
author | Jacob Janzen <jjanzenn@proton.me> | 2024-08-08 17:07:35 -0500 |
---|---|---|
committer | Jacob Janzen <jjanzenn@proton.me> | 2024-08-08 17:07:35 -0500 |
commit | 57667f82145277920ddacf59bf57c0046129bd63 (patch) | |
tree | 61dbee1960ab39bd69a1da0010c9f78b4fe6659d /.config/emacs/force-custom-file.org | |
parent | 545dfbb53f2bb6d7669ca7bfd1f4775a9150b530 (diff) |
move configs to hidden directories
Diffstat (limited to '.config/emacs/force-custom-file.org')
-rw-r--r-- | .config/emacs/force-custom-file.org | 8 |
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 |