diff options
Diffstat (limited to '.emacs.d/mysnippets/text-mode/python-mode/defm')
| -rw-r--r-- | .emacs.d/mysnippets/text-mode/python-mode/defm | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/.emacs.d/mysnippets/text-mode/python-mode/defm b/.emacs.d/mysnippets/text-mode/python-mode/defm deleted file mode 100644 index dc25827..0000000 --- a/.emacs.d/mysnippets/text-mode/python-mode/defm +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | # -*- coding: utf-8 -*- | ||
| 2 | # name: defm | ||
| 3 | # contributor: Yasser Gonz¨¢lez Fern¨¢ndez <yglez@uh.cu> | ||
| 4 | # -- | ||
| 5 | def ${1:name}(self, $2): | ||
| 6 | """$3 | ||
| 7 | ${2:$ | ||
| 8 | (let* ((indent | ||
| 9 | (concat "\n" (make-string (current-column) 32))) | ||
| 10 | (args | ||
| 11 | (mapconcat | ||
| 12 | '(lambda (x) | ||
| 13 | (if (not (string= (nth 0 x) "")) | ||
| 14 | (concat "- " (char-to-string 96) (nth 0 x) | ||
| 15 | (char-to-string 96) ":"))) | ||
| 16 | (mapcar | ||
| 17 | '(lambda (x) | ||
| 18 | (mapcar | ||
| 19 | '(lambda (x) | ||
| 20 | (replace-regexp-in-string "[[:blank:]]*$" "" | ||
| 21 | (replace-regexp-in-string "^[[:blank:]]*" "" x))) | ||
| 22 | x)) | ||
| 23 | (mapcar '(lambda (x) (split-string x "=")) | ||
| 24 | (split-string text ","))) | ||
| 25 | indent))) | ||
| 26 | (if (string= args "") | ||
| 27 | (make-string 3 34) | ||
| 28 | (mapconcat | ||
| 29 | 'identity | ||
| 30 | (list "" "Arguments:" args (make-string 3 34)) | ||
| 31 | indent))) | ||
| 32 | } | ||
| 33 | $0 | ||
