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 ++++++++ yasnippet/org-mode/align | 8 ++++++++ yasnippet/org-mode/blognew | 21 +++++++++++++++++++++ yasnippet/org-mode/elisp | 7 +++++++ 8 files changed, 71 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 create mode 100644 yasnippet/org-mode/align create mode 100644 yasnippet/org-mode/blognew create mode 100644 yasnippet/org-mode/elisp (limited to 'yasnippet') 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 diff --git a/yasnippet/org-mode/align b/yasnippet/org-mode/align new file mode 100644 index 0000000..e387d90 --- /dev/null +++ b/yasnippet/org-mode/align @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: align +# key: align +# -- + +\begin{align} + $0 +\end{align} \ No newline at end of file diff --git a/yasnippet/org-mode/blognew b/yasnippet/org-mode/blognew new file mode 100644 index 0000000..260e7de --- /dev/null +++ b/yasnippet/org-mode/blognew @@ -0,0 +1,21 @@ +# -*- mode: snippet -*- +# name: blognew +# key: blognew +# -- +#+title: $1 +#+author: Preston Pan +#+description: $2 +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+html_head: +#+language: en +#+OPTIONS: broken-links:t + +* Introduction +$0 \ No newline at end of file diff --git a/yasnippet/org-mode/elisp b/yasnippet/org-mode/elisp new file mode 100644 index 0000000..43a6eb6 --- /dev/null +++ b/yasnippet/org-mode/elisp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: elisp +# key: elisp +# -- +#+begin_src emacs-lisp :exports both +$0 +#+end_src -- cgit