summaryrefslogtreecommitdiffstats
path: root/etc/yasnippet/snippets/latex-mode/ref
diff options
context:
space:
mode:
Diffstat (limited to 'etc/yasnippet/snippets/latex-mode/ref')
-rw-r--r--etc/yasnippet/snippets/latex-mode/ref5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/yasnippet/snippets/latex-mode/ref b/etc/yasnippet/snippets/latex-mode/ref
new file mode 100644
index 0000000..7eef596
--- /dev/null
+++ b/etc/yasnippet/snippets/latex-mode/ref
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: ref
+# key: r
+# --
+$1${2:~}\ref{${3:$$(unless yas-modified-p (reftex-reference nil nil))}}$0 \ No newline at end of file