From 871c680d2963f852b5c0c2de11b1a7fc1d0119d3 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Tue, 20 Sep 2016 17:46:48 +0200 Subject: Make python-args-to-docstring in .emacs.d/snippets/python-mode/.yas-setup.el use a different docstring standard --- .emacs.d/snippets/python-mode/.yas-setup.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) (formatted-args (mapconcat (lambda (x) - (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " + (concat ":param " (nth 0 x) ":\n:type " (nth 0 x) ": object\n" (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) args indent))) -- cgit v1.3