emacs: enable yasnippet globally and add a couple of snippets
[~bandali/configs] / .emacs.d / etc / yasnippet / snippets / java-mode / printf
diff --git a/.emacs.d/etc/yasnippet/snippets/java-mode/printf b/.emacs.d/etc/yasnippet/snippets/java-mode/printf
new file mode 100644 (file)
index 0000000..eac39a1
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: printf
+# key: pf
+# --
+System.out.printf("$1${2:%n}");$0
\ No newline at end of file