diff options
| author | Thomas Ulmer <thomas.ulmer@redflagai.co> | 2026-03-23 13:53:48 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomas.ulmer@redflagai.co> | 2026-03-23 13:53:48 -0700 |
| commit | b243bd5c9d182dff1bcb0d87723ac43f4840559b (patch) | |
| tree | 21d13961606e77bea3516c2f434350506d3efbea | |
| parent | c68f853725652f384ce489b2635f0c8df3617299 (diff) | |
emacs abbrev for size_t
| -rw-r--r-- | config/emacs/abbrev_defs | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/config/emacs/abbrev_defs b/config/emacs/abbrev_defs index f7e175d..984c562 100644 --- a/config/emacs/abbrev_defs +++ b/config/emacs/abbrev_defs @@ -1,25 +1,27 @@ ;; -*- coding: utf-8; lexical-binding: t -*- +(define-abbrev-table 'c++-mode-abbrev-table + '( + ("i16" "int16_t" nil :count 0) + ("i32" "int32_t" nil :count 1) + ("i64" "int64_t" nil :count 0) + ("i8" "int8_t" nil :count 1) + ("szt" "size_t" nil :count 1) + ("u16" "uint16_t" nil :count 1) + ("u32" "uint32_t" nil :count 0) + ("u64" "uint64_t" nil :count 0) + ("u8" "uint8_t" nil :count 5) + )) + (define-abbrev-table 'c-mode-abbrev-table '( ("i16" "int16_t" nil :count 0) ("i32" "int32_t" nil :count 1) ("i64" "int64_t" nil :count 0) ("i8" "int8_t" nil :count 1) + ("szt" "size_t" nil :count 1) ("u16" "uint16_t" nil :count 0) ("u32" "uint32_t" nil :count 0) ("u64" "uint64_t" nil :count 0) ("u8" "uint8_t" nil :count 2) )) -(define-abbrev-table 'c++-mode-abbrev-table -'( -("i16" "int16_t" nil :count 0) -("i32" "int32_t" nil :count 1) -("i64" "int64_t" nil :count 0) -("i8" "int8_t" nil :count 1) -("u16" "uint16_t" nil :count 0) -("u32" "uint32_t" nil :count 0) -("u64" "uint64_t" nil :count 0) -("u8" "uint8_t" nil :count 2) -)) - |
