Update defaults: abbrev

This commit is contained in:
James Cherti
2025-02-10 14:52:28 -05:00
parent ea9e0bbc5d
commit a782878aca

16
init.el
View File

@@ -108,14 +108,9 @@
;; multiple sources provide it. It concatenates the results. ;; multiple sources provide it. It concatenates the results.
(setq eldoc-documentation-strategy 'eldoc-documentation-compose-eagerly) (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 ;; Disable truncation of printed s-expressions in the message buffer
(setq eval-expression-print-length nil (setq eval-expression-print-length nil
eval-expression-print-level nil) eval-expression-print-level nil)
;;; Files ;;; Files
@@ -534,4 +529,13 @@
(setq xref-show-definitions-function #'xref-show-definitions-completing-read (setq xref-show-definitions-function #'xref-show-definitions-completing-read
xref-show-xrefs-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 ;;; init.el ends here