diff options
| -rw-r--r-- | .emacs.d/snippets/python-mode/.yas-setup.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/snippets/python-mode/.yas-setup.el b/.emacs.d/snippets/python-mode/.yas-setup.el index cd46717..2f52c4f 100644 --- a/.emacs.d/snippets/python-mode/.yas-setup.el +++ b/.emacs.d/snippets/python-mode/.yas-setup.el | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) | 14 | (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) |
| 15 | (formatted-args (mapconcat | 15 | (formatted-args (mapconcat |
| 16 | (lambda (x) | 16 | (lambda (x) |
| 17 | (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " | 17 | (concat ":param " (nth 0 x) ":\n:type " (nth 0 x) ": object\n" |
| 18 | (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) | 18 | (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) |
| 19 | args | 19 | args |
| 20 | indent))) | 20 | indent))) |
