From 46e8b0c5e914c0283a08b0f08aa3cc7c381f47b8 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Tue, 28 Jan 2025 13:07:16 -0800 Subject: add kiwix; yasnippet macros; a couple new entries; update website --- yasnippet/c-mode/bcom | 5 +++++ yasnippet/c-mode/com | 6 ++++++ yasnippet/c-mode/ndef | 8 ++++++++ yasnippet/c-mode/ts | 8 ++++++++ yasnippet/c-mode/tu | 8 ++++++++ 5 files changed, 35 insertions(+) create mode 100644 yasnippet/c-mode/bcom create mode 100644 yasnippet/c-mode/com create mode 100644 yasnippet/c-mode/ndef create mode 100644 yasnippet/c-mode/ts create mode 100644 yasnippet/c-mode/tu (limited to 'yasnippet/c-mode') diff --git a/yasnippet/c-mode/bcom b/yasnippet/c-mode/bcom new file mode 100644 index 0000000..9b74a91 --- /dev/null +++ b/yasnippet/c-mode/bcom @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: bcom +# key: bcom +# -- +/*! @brief $0 */ \ No newline at end of file diff --git a/yasnippet/c-mode/com b/yasnippet/c-mode/com new file mode 100644 index 0000000..66551f1 --- /dev/null +++ b/yasnippet/c-mode/com @@ -0,0 +1,6 @@ + +# -*- mode: snippet -*- +# name: com +# key: com +# -- +/*! $0 */ \ No newline at end of file diff --git a/yasnippet/c-mode/ndef b/yasnippet/c-mode/ndef new file mode 100644 index 0000000..838829c --- /dev/null +++ b/yasnippet/c-mode/ndef @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: ndef +# key: ndef +# -- +#ifndef $1 +#define $1 +$0 +#endif /* $1 */ diff --git a/yasnippet/c-mode/ts b/yasnippet/c-mode/ts new file mode 100644 index 0000000..2152ca2 --- /dev/null +++ b/yasnippet/c-mode/ts @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: ts +# key: ts +# -- +/*! @brief $3 */ +typedef struct $1 { + $0 +} $2; \ No newline at end of file diff --git a/yasnippet/c-mode/tu b/yasnippet/c-mode/tu new file mode 100644 index 0000000..df97bd2 --- /dev/null +++ b/yasnippet/c-mode/tu @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: tu +# key: tu +# -- +/*! @brief $3 */ +typedef union $1 { + $0 +} $2; \ No newline at end of file -- cgit