diff options
| author | Simeon Simeonov | 2016-09-20 17:46:48 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2016-09-20 17:46:48 +0200 |
| commit | 871c680d2963f852b5c0c2de11b1a7fc1d0119d3 (patch) | |
| tree | a9d3b96430e0643189a083047f18bc1ca2341106 /.emacs.d/snippets/python-mode/.yas-setup.el | |
| parent | cef700b95757631e62f9bebbb4482fa8bc529973 (diff) | |
Make python-args-to-docstring in .emacs.d/snippets/python-mode/.yas-setup.el use a different docstring standard
Diffstat (limited to '.emacs.d/snippets/python-mode/.yas-setup.el')
| -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))) |
