summaryrefslogtreecommitdiffstats
path: root/etc/yasnippet/snippets/latex-mode/ref
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-11 23:54:33 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-11 23:54:33 -0400
commit2ec18855d6d4e144776551dfb4921e1b133dfd29 (patch)
tree9bc2cca3414a2deba2595382e3c288d46dcff2cd /etc/yasnippet/snippets/latex-mode/ref
parentc4b211177c12a97f8ffe10055325dd90a0a39b31 (diff)
downloadconfigs-2ec18855d6d4e144776551dfb4921e1b133dfd29.tar.gz
configs-2ec18855d6d4e144776551dfb4921e1b133dfd29.tar.xz
configs-2ec18855d6d4e144776551dfb4921e1b133dfd29.zip
move emacs files from .emacs.d to .
this repository's root will be ~/.emacs.d (again) from now on
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