summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/mm-abbrev.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-11-07 22:01:32 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-11-07 22:01:32 +0100
commit07e16d21090cb079e673e8f417a565d9703c21a1 (patch)
treef43d04fe5b0631ebac900673d83625bfcc436e11 /.config/emacs/modules/mm-abbrev.el
parent931f7954c4e989ea74747045319d050e6947d8ab (diff)
emacs: Various small tweaks
Diffstat (limited to '.config/emacs/modules/mm-abbrev.el')
-rw-r--r--.config/emacs/modules/mm-abbrev.el11
1 files changed, 5 insertions, 6 deletions
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