summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/prog-mode
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/prog-mode')
-rw-r--r--.emacs.d/snippets/prog-mode/.yas-setup.el2
-rw-r--r--.emacs.d/snippets/prog-mode/fixme6
-rw-r--r--.emacs.d/snippets/prog-mode/todo5
-rw-r--r--.emacs.d/snippets/prog-mode/xxx5
4 files changed, 18 insertions, 0 deletions
diff --git a/.emacs.d/snippets/prog-mode/.yas-setup.el b/.emacs.d/snippets/prog-mode/.yas-setup.el
new file mode 100644
index 0000000..03d07cf
--- /dev/null
+++ b/.emacs.d/snippets/prog-mode/.yas-setup.el
@@ -0,0 +1,2 @@
1(defun yas-with-comment (str)
2 (format "%s%s%s" comment-start str comment-end))
diff --git a/.emacs.d/snippets/prog-mode/fixme b/.emacs.d/snippets/prog-mode/fixme
new file mode 100644
index 0000000..146db8b
--- /dev/null
+++ b/.emacs.d/snippets/prog-mode/fixme
@@ -0,0 +1,6 @@
1# -*- mode: snippet -*-
2# name: fixme
3# key: fi
4# condition: (not (eq major-mode 'sh-mode))
5# --
6`(yas-with-comment "FIXME: ")` \ No newline at end of file
diff --git a/.emacs.d/snippets/prog-mode/todo b/.emacs.d/snippets/prog-mode/todo
new file mode 100644
index 0000000..973151f
--- /dev/null
+++ b/.emacs.d/snippets/prog-mode/todo
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: todo
3# key: t
4# --
5`(yas-with-comment "TODO: ")` \ No newline at end of file
diff --git a/.emacs.d/snippets/prog-mode/xxx b/.emacs.d/snippets/prog-mode/xxx
new file mode 100644
index 0000000..09df18b
--- /dev/null
+++ b/.emacs.d/snippets/prog-mode/xxx
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: xxx
3# key: x
4# --
5`(yas-with-comment "XXX: ")` \ No newline at end of file