From 40f02bc8088ca93224bf65f083c4ab3b17eaf435 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Fri, 9 Aug 2024 20:48:10 -0500 Subject: move gentoo into subdirectory --- gentoo/.config/emacs/force-custom-file.org | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 gentoo/.config/emacs/force-custom-file.org (limited to 'gentoo/.config/emacs/force-custom-file.org') diff --git a/gentoo/.config/emacs/force-custom-file.org b/gentoo/.config/emacs/force-custom-file.org new file mode 100644 index 0000000..8b8a418 --- /dev/null +++ b/gentoo/.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 -- cgit v1.2.3