From 92d0d9dc1cb61f3ae60320ddb01d243af5bc572d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 28 Sep 2023 16:27:11 +0100 Subject: (Emacs)~no-littering is setup in init.el This solves the bug with custom.el where it randomly resets and forgets what I setup there already. Found this out through the custom.el info, where setting a custom file yourself requires loading it in post. --- Emacs/.config/emacs/init.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Emacs/.config/emacs/init.el') diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el index 4c38d29..6011df4 100644 --- a/Emacs/.config/emacs/init.el +++ b/Emacs/.config/emacs/init.el @@ -47,6 +47,13 @@ (straight-use-package 'use-package) (straight-use-package 'org) +(straight-use-package 'no-littering) + +(setq no-littering-etc-directory (expand-file-name ".config/" user-emacs-directory) + no-littering-var-directory (expand-file-name ".local/" user-emacs-directory) + custom-file (no-littering-expand-etc-file-name "custom.el")) + +(load-file custom-file) ;;; Load literate (load-file (concat user-emacs-directory "elisp/literate.el")) -- cgit v1.2.3-13-gbd6f