From b243bd5c9d182dff1bcb0d87723ac43f4840559b Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Mon, 23 Mar 2026 13:53:48 -0700 Subject: emacs abbrev for size_t --- config/emacs/abbrev_defs | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'config/emacs') 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) -)) - -- cgit v1.2.3