--- /dev/null
+# -*- mode: snippet -*-
+# name: String.format
+# key: f
+# --
+String.format("$1${2:%n}");$0
\ No newline at end of file
--- /dev/null
+# -*- mode: snippet -*-
+# name: new
+# key: new
+# --
+${1:Type} ${2:obj} = new ${3:Constr}(${4:args});$0
\ No newline at end of file
--- /dev/null
+# -*- mode: snippet -*-
+# name: printf
+# key: pf
+# --
+System.out.printf("$1${2:%n}");$0
\ No newline at end of file
--- /dev/null
+# -*- mode: snippet -*-
+# name: println
+# key: p
+# --
+System.out.println($1);$0
\ No newline at end of file
--- /dev/null
+# -*- mode: snippet -*-
+# name: return
+# key: r
+# --
+return $1;$0
\ No newline at end of file
:config
(defconst yas-verbosity-cur yas-verbosity)
(setq yas-verbosity 2)
- (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets")
+ (add-to-list 'yas-snippet-dirs "~/src/git/guix/etc/snippets" t)
(yas-reload-all)
(setq yas-verbosity yas-verbosity-cur)
- :hook
- (text-mode . yas-minor-mode))
+ (yas-global-mode))
(use-package debbugs
:straight (debbugs