From 9c83af34195ed0113df01f8c0e4a734ab4084e20 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Sun, 20 Oct 2024 19:21:53 +0300 Subject: . --- emacs.d/snippets/go-mode/errnotnil | 5 +++++ emacs.d/snippets/go-mode/error | 7 +++++++ emacs.d/snippets/mhtml-mode/
..
| 7 +++++++ emacs.d/snippets/mhtml-mode/
..
~ | 7 +++++++ emacs.d/snippets/mhtml-mode/{{define}} | 7 +++++++ 5 files changed, 33 insertions(+) create mode 100644 emacs.d/snippets/go-mode/errnotnil create mode 100644 emacs.d/snippets/go-mode/error create mode 100644 emacs.d/snippets/mhtml-mode/
..
create mode 100644 emacs.d/snippets/mhtml-mode/
..
~ create mode 100644 emacs.d/snippets/mhtml-mode/{{define}} diff --git a/emacs.d/snippets/go-mode/errnotnil b/emacs.d/snippets/go-mode/errnotnil new file mode 100644 index 0000000..0122e56 --- /dev/null +++ b/emacs.d/snippets/go-mode/errnotnil @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: err not nil +# key: ; +# -- +; err != nil \ No newline at end of file diff --git a/emacs.d/snippets/go-mode/error b/emacs.d/snippets/go-mode/error new file mode 100644 index 0000000..799e9f8 --- /dev/null +++ b/emacs.d/snippets/go-mode/error @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: error +# key: err@ +# -- +if err != nil { + $0 +} diff --git a/emacs.d/snippets/mhtml-mode/
..
b/emacs.d/snippets/mhtml-mode/
..
new file mode 100644 index 0000000..29b23b4 --- /dev/null +++ b/emacs.d/snippets/mhtml-mode/
..
@@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name:
..
+# key: div +# -- +
+ $1 +
diff --git a/emacs.d/snippets/mhtml-mode/
..
~ b/emacs.d/snippets/mhtml-mode/
..
~ new file mode 100644 index 0000000..028d782 --- /dev/null +++ b/emacs.d/snippets/mhtml-mode/
..
~ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name:
..
+# key:
+ $1 +
diff --git a/emacs.d/snippets/mhtml-mode/{{define}} b/emacs.d/snippets/mhtml-mode/{{define}} new file mode 100644 index 0000000..f18391c --- /dev/null +++ b/emacs.d/snippets/mhtml-mode/{{define}} @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: {{define}} +# key: define +# -- +{{define "$1"}} +$2 +{{end}} -- cgit v1.2.3