From 1adfb1d130c27b4d0f12d956446604a3714c1bc9 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 8 Jan 2019 10:41:09 +0100 Subject: Add lua-mode.el, update php-mode and yasnippet, add some new C and Python snippets --- .emacs.d/snippets/c-mode/fgets | 5 +++++ .emacs.d/snippets/c-mode/fprintf | 5 +++++ .emacs.d/snippets/c-mode/scanf | 5 +++++ .emacs.d/snippets/c-mode/strstr | 5 +++++ .emacs.d/snippets/python-mode/class_doxygen_doc | 11 +++++++++++ .emacs.d/snippets/python-mode/function_doxygen_doc | 15 +++++++++++++++ 6 files changed, 46 insertions(+) create mode 100644 .emacs.d/snippets/c-mode/fgets create mode 100644 .emacs.d/snippets/c-mode/fprintf create mode 100644 .emacs.d/snippets/c-mode/scanf create mode 100644 .emacs.d/snippets/c-mode/strstr create mode 100644 .emacs.d/snippets/python-mode/class_doxygen_doc create mode 100644 .emacs.d/snippets/python-mode/function_doxygen_doc (limited to '.emacs.d/snippets') 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 @@ +# -*- mode: snippet -*- +# name: fgets +# key: fgets +# -- +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 @@ +# -*- mode: snippet -*- +# name: fprintf +# key: fprintf +# -- +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 @@ +# -*- mode: snippet -*- +# name: scanf +# key: scanf +# -- +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 @@ +# -*- mode: snippet -*- +# name: strstr +# key: strstr +# -- +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 @@ +# -*- mode: snippet -*- +# contributor: Dan Pitic +# name: Class Doxygen Doc +# key: doxy_class +# group: doxygen +# -- +""" +@brief ${1:class description} + +@details ${2:detailed description} +""" \ 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 @@ +# -*- mode: snippet -*- +# contributor: Dan Pitic +# name: Function Doxygen Doc +# key: doxy_func +# group: doxygen +# -- +""" +@brief ${1:function description} + +@details ${2:detailed description} + +@param ${3:param} + +@return ${4:return type} +""" \ No newline at end of file -- cgit v1.3