diff options
| author | Simeon Simeonov | 2016-06-16 09:07:53 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2016-06-16 09:07:53 +0200 |
| commit | 991f8ff925f51fd5598db72885f8cca1a1a79bed (patch) | |
| tree | f55c97c928d5e7f408ee459f713b2c57af34afdd /.emacs.d/snippets/prog-mode | |
| parent | 29f6287f356ef9fc016e2f26861ff9a14443f3ea (diff) | |
Upgrade all modes, include snippets/html-mode, snippets/nxml-mode and snippets/prog-mode
Diffstat (limited to '.emacs.d/snippets/prog-mode')
| -rw-r--r-- | .emacs.d/snippets/prog-mode/.yas-setup.el | 2 | ||||
| -rw-r--r-- | .emacs.d/snippets/prog-mode/fixme | 6 | ||||
| -rw-r--r-- | .emacs.d/snippets/prog-mode/todo | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/prog-mode/xxx | 5 |
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 | ||
