From df53a00508e4dbe282694059e28e5cb558e8407a Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 25 Mar 2024 17:02:22 +0800 Subject: [PATCH] Adjust my abbrev config --- config.org | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index 92da0a1..2a49ce6 100644 --- a/config.org +++ b/config.org @@ -3535,16 +3535,28 @@ let's change that, and do a few other similar tweaks while we're at it. ** Tools *** Abbrev -#+call: confpkg("Multi-mode abbrev") +#+call: confpkg() -Thanks to [[https://emacs.stackexchange.com/questions/45462/use-a-single-abbrev-table-for-multiple-modes/45476#45476][use a single abbrev-table for multiple modes? - Emacs Stack Exchange]] I -have the following. +Abbrev mode is great, and something I make use of in multiple ways. As such, I +want it on by default. -#+begin_src emacs-lisp :tangle no -(add-hook 'doom-first-buffer-hook - (defun +abbrev-file-name () - (setq-default abbrev-mode t) - (setq abbrev-file-name (expand-file-name "abbrev.el" doom-private-dir)))) +#+begin_src emacs-lisp +(setq-default abbrev-mode t) +#+end_src + +Abbrev-mode can save and load abbreviations from an "abbrev file", which I'd +like to locate in my Doom config folder. + +#+begin_src emacs-lisp +(setq abbrev-file-name (expand-file-name "abbrev.el" doom-private-dir)) +#+end_src + +I need to think more on how I want to manage abbrev changes in the current +session, but for now I'm going to be overly cautious and avoid any modifications +to the global abbrev file that I don't make myself. + +#+begin_src emacs-lisp +(setq save-abbrevs nil) #+end_src *** Very large files