From a73e0395ffe0049e4e3c73aa037e12f4b0cad182 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:38:38 -0500 Subject: [PATCH] Update `abbrev_defs` default path For some reason, `abbrev_defs` is located in `~/.emacs.d/abbrev_defs`, even when `user-emacs-directory` is modified. This ensures the abbrev file is correctly located based on the updated `user-emacs-directory`. --- init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.el b/init.el index 7867b8f..2289a12 100644 --- a/init.el +++ b/init.el @@ -117,6 +117,11 @@ ;; multiple sources provide it. It concatenates the results. (setq eldoc-documentation-strategy 'eldoc-documentation-compose-eagerly) +;; For some reason, `abbrev_defs` is located in ~/.emacs.d/abbrev_defs, even +;; when `user-emacs-directory` is modified. This ensures the abbrev file is +;; correctly located based on the updated `user-emacs-directory`. +(setq abbrev-file-name (expand-file-name "abbrev_defs" user-emacs-directory)) + ;;; Files ;; Disable the warning "X and Y are the same file". Ignoring this warning is