aboutsummaryrefslogtreecommitdiff
path: root/yasnippet
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2024-06-28 21:30:42 -0700
committerPreston Pan <preston@nullring.xyz>2024-06-28 21:30:42 -0700
commite7dd5245c35d2794f59bcf700a6a92009ec8c478 (patch)
tree0d0e81552f0426f8b715bd5bd3bdd0856058db2c /yasnippet
parent01ba01763b81a838dcbac4c08243804e068495b9 (diff)
stuff
Diffstat (limited to 'yasnippet')
-rw-r--r--yasnippet/latex-mode/abs6
-rw-r--r--yasnippet/latex-mode/bra5
-rw-r--r--yasnippet/latex-mode/braket5
-rw-r--r--yasnippet/latex-mode/ket5
-rw-r--r--yasnippet/latex-mode/norm5
-rw-r--r--yasnippet/org-mode/date5
-rw-r--r--yasnippet/python-mode/namemain6
-rw-r--r--yasnippet/python-mode/pclass8
8 files changed, 45 insertions, 0 deletions
diff --git a/yasnippet/latex-mode/abs b/yasnippet/latex-mode/abs
new file mode 100644
index 0000000..8080b4f
--- /dev/null
+++ b/yasnippet/latex-mode/abs
@@ -0,0 +1,6 @@
+
+# -*- mode: snippet -*-
+# name: abs
+# key: abs
+# --
+| $1 | $0
diff --git a/yasnippet/latex-mode/bra b/yasnippet/latex-mode/bra
new file mode 100644
index 0000000..5f9fbc7
--- /dev/null
+++ b/yasnippet/latex-mode/bra
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: bra
+# key: bra
+# --
+\langle $1 | $0
diff --git a/yasnippet/latex-mode/braket b/yasnippet/latex-mode/braket
new file mode 100644
index 0000000..aa2be67
--- /dev/null
+++ b/yasnippet/latex-mode/braket
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: braket
+# key: braket
+# --
+\left\langle $2 \middle| $1 \right\rangle $0 \ No newline at end of file
diff --git a/yasnippet/latex-mode/ket b/yasnippet/latex-mode/ket
new file mode 100644
index 0000000..cb39643
--- /dev/null
+++ b/yasnippet/latex-mode/ket
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ket
+# key: ket
+# --
+| $1 \rangle $0
diff --git a/yasnippet/latex-mode/norm b/yasnippet/latex-mode/norm
new file mode 100644
index 0000000..f85cf55
--- /dev/null
+++ b/yasnippet/latex-mode/norm
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: norm
+# key: norm
+# --
+\lVert $1 \rVert $0 \ No newline at end of file
diff --git a/yasnippet/org-mode/date b/yasnippet/org-mode/date
new file mode 100644
index 0000000..ade2776
--- /dev/null
+++ b/yasnippet/org-mode/date
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: date
+# key: date
+# --
+`(format-time-string "%Y-%m-%d")`$0
diff --git a/yasnippet/python-mode/namemain b/yasnippet/python-mode/namemain
new file mode 100644
index 0000000..870114c
--- /dev/null
+++ b/yasnippet/python-mode/namemain
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: namemain
+# key: namemain
+# --
+if __name__ == "__main__":
+ $0 \ No newline at end of file
diff --git a/yasnippet/python-mode/pclass b/yasnippet/python-mode/pclass
new file mode 100644
index 0000000..1e6b8f7
--- /dev/null
+++ b/yasnippet/python-mode/pclass
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: pclass
+# key: pclass
+# --
+
+class $1:
+ def __init__(self$2):
+ $0