From 07e16d21090cb079e673e8f417a565d9703c21a1 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 7 Nov 2024 22:01:32 +0100 Subject: emacs: Various small tweaks --- .config/emacs/modules/mm-abbrev.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.config/emacs/modules/mm-abbrev.el') diff --git a/.config/emacs/modules/mm-abbrev.el b/.config/emacs/modules/mm-abbrev.el index f484fc5..937d558 100644 --- a/.config/emacs/modules/mm-abbrev.el +++ b/.config/emacs/modules/mm-abbrev.el @@ -26,8 +26,7 @@ case-sensitive to avoid unexpected abbreviation expansions." ;;; Abbreviation Configuration (use-package abbrev - :init - (setq-default abbrev-mode t) + :hook prog-mode :custom (abbrev-file-name (expand-file-name "abbev-defs" mm-data-directory)) (save-abbrevs 'silently)) @@ -44,9 +43,9 @@ case-sensitive to avoid unexpected abbreviation expansions." "fpf" "fprintf" "fuf" "funlockfile" "pf" "printf" - "se" "stderr" - "si" "stdin" - "so" "stdout") + "sde" "stderr" + "sdi" "stdin" + "sdo" "stdout") (with-eval-after-load 'cc-mode (setq c-mode-abbrev-table (copy-abbrev-table mm-c-mode-abbrev-table) @@ -100,4 +99,4 @@ case-sensitive to avoid unexpected abbreviation expansions." #'tempel-complete -10 :local)))) (add-to-list 'auto-mode-alist (cons tempel-path #'lisp-data-mode))) -(provide 'mm-abbrev) +(provide 'mm-abbrev) \ No newline at end of file -- cgit v1.2.3