From 5e224cf2b7e9472d96efe8d8088ad125f372e957 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 15 Apr 2021 07:35:40 +0200 Subject: [PATCH] abbrev in its own use-package block --- init.org | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/init.org b/init.org index 480cad4..f75fd55 100644 --- a/init.org +++ b/init.org @@ -178,10 +178,8 @@ Maybe turn it on again at some point before the next major emacs upgrade "[/\\]\\.elpa/"))) (setq custom-file (concat MY--PATH_USER_LOCAL "custom.el")) ;; don't spam init.e with saved customization settings -(setq abbrev-file-name (concat MY--PATH_USER_GLOBAL "abbrev_defs")) (setq backup-directory-alist `((".*" . ,temporary-file-directory))) (setq auto-save-file-name-transforms `((".*" ,temporary-file-directory))) -(setq save-abbrevs 'silently) ;; don't bother me with asking for abbrev saving (setq-default create-lockfiles nil) ;; disable lock files, can cause trouble in e.g. lsp-mode (defalias 'yes-or-no-p 'y-or-n-p) ;; answer with y and n (setq custom-safe-themes t) ;; don't ask me if I want to load a theme @@ -404,6 +402,17 @@ Windows Theme: (setq which-key-idle-delay 0.5)) #+END_SRC +* abbrev +#+begin_src emacs-lisp +(use-package abbrev + :diminish abbrev-mode + :init + (setq abbrev-file-name (concat MY--PATH_USER_GLOBAL "abbrev_tables.el")) + :config + (if (file-exists-p abbrev-file-name) + (quietly-read-abbrev-file)) + (setq save-abbrevs 'silently)) ;; don't bother me with asking for abbrev saving +#+end_src * Evil :PROPERTIES: :ID: 80ca70e2-a146-46db-b581-418d655dc1fc