From a782878aca0aff81b007964ae3e4fab27c558867 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 10 Feb 2025 14:52:28 -0500 Subject: [PATCH] Update defaults: abbrev --- init.el | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 04db3ff..8dd77d7 100644 --- a/init.el +++ b/init.el @@ -108,14 +108,9 @@ ;; 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)) - ;; Disable truncation of printed s-expressions in the message buffer (setq eval-expression-print-length nil - eval-expression-print-level nil) + eval-expression-print-level nil) ;;; Files @@ -534,4 +529,13 @@ (setq xref-show-definitions-function #'xref-show-definitions-completing-read xref-show-xrefs-function #'xref-show-definitions-completing-read) +;;; abbrev + +;; Ensure `abbrev_defs` is stored in the correct location when +;; `user-emacs-directory` is modified, as it defaults to ~/.emacs.d/abbrev_defs +;; regardless of the change. +(setq abbrev-file-name (expand-file-name "abbrev_defs" user-emacs-directory)) + +(setq save-abbrevs 'silently) + ;;; init.el ends here