diff options
| author | Simeon Simeonov | 2019-01-08 10:41:09 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2019-01-08 10:41:09 +0100 |
| commit | 1adfb1d130c27b4d0f12d956446604a3714c1bc9 (patch) | |
| tree | 4a5acbabe5c01af7fa0e2fbcca183d634df16c78 /.emacs.d/snippets | |
| parent | 91a787a67152d5c62a311a0e49a5242d8a6fb2b8 (diff) | |
Add lua-mode.el, update php-mode and yasnippet, add some new C and Python snippets
Diffstat (limited to '.emacs.d/snippets')
| -rw-r--r-- | .emacs.d/snippets/c-mode/fgets | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/c-mode/fprintf | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/c-mode/scanf | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/c-mode/strstr | 5 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode/class_doxygen_doc | 11 | ||||
| -rw-r--r-- | .emacs.d/snippets/python-mode/function_doxygen_doc | 15 |
6 files changed, 46 insertions, 0 deletions
diff --git a/.emacs.d/snippets/c-mode/fgets b/.emacs.d/snippets/c-mode/fgets new file mode 100644 index 0000000..f572e2b --- /dev/null +++ b/.emacs.d/snippets/c-mode/fgets | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: fgets | ||
| 3 | # key: fgets | ||
| 4 | # -- | ||
| 5 | fgets(${1:variable}, ${2:size}, ${3:stdin}); | ||
diff --git a/.emacs.d/snippets/c-mode/fprintf b/.emacs.d/snippets/c-mode/fprintf new file mode 100644 index 0000000..6b269eb --- /dev/null +++ b/.emacs.d/snippets/c-mode/fprintf | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: fprintf | ||
| 3 | # key: fprintf | ||
| 4 | # -- | ||
| 5 | fprintf(${1:stdout}, "${2:format string}", ${3:variable}); | ||
diff --git a/.emacs.d/snippets/c-mode/scanf b/.emacs.d/snippets/c-mode/scanf new file mode 100644 index 0000000..002504c --- /dev/null +++ b/.emacs.d/snippets/c-mode/scanf | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: scanf | ||
| 3 | # key: scanf | ||
| 4 | # -- | ||
| 5 | scanf("${1:format string}", ${2:&variable}); | ||
diff --git a/.emacs.d/snippets/c-mode/strstr b/.emacs.d/snippets/c-mode/strstr new file mode 100644 index 0000000..09b00e7 --- /dev/null +++ b/.emacs.d/snippets/c-mode/strstr | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # name: strstr | ||
| 3 | # key: strstr | ||
| 4 | # -- | ||
| 5 | strstr(${1:string}, ${2:string}); | ||
diff --git a/.emacs.d/snippets/python-mode/class_doxygen_doc b/.emacs.d/snippets/python-mode/class_doxygen_doc new file mode 100644 index 0000000..e8c6fa4 --- /dev/null +++ b/.emacs.d/snippets/python-mode/class_doxygen_doc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # contributor: Dan Pitic <dpitic@gmail.com> | ||
| 3 | # name: Class Doxygen Doc | ||
| 4 | # key: doxy_class | ||
| 5 | # group: doxygen | ||
| 6 | # -- | ||
| 7 | """ | ||
| 8 | @brief ${1:class description} | ||
| 9 | |||
| 10 | @details ${2:detailed description} | ||
| 11 | """ \ No newline at end of file | ||
diff --git a/.emacs.d/snippets/python-mode/function_doxygen_doc b/.emacs.d/snippets/python-mode/function_doxygen_doc new file mode 100644 index 0000000..f42b999 --- /dev/null +++ b/.emacs.d/snippets/python-mode/function_doxygen_doc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # -*- mode: snippet -*- | ||
| 2 | # contributor: Dan Pitic <dpitic@gmail.com> | ||
| 3 | # name: Function Doxygen Doc | ||
| 4 | # key: doxy_func | ||
| 5 | # group: doxygen | ||
| 6 | # -- | ||
| 7 | """ | ||
| 8 | @brief ${1:function description} | ||
| 9 | |||
| 10 | @details ${2:detailed description} | ||
| 11 | |||
| 12 | @param ${3:param} | ||
| 13 | |||
| 14 | @return ${4:return type} | ||
| 15 | """ \ No newline at end of file | ||
