Skip to content

ishai1/yasnippet-numpy-style

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yasnippet-numpy-style

yasnippet snippets for docstring in numpy coding style.

#Installation At first, install yasnippet.

Then:

$ git clone https://github.com/marubu/yasnippet-numpy-style.git /tmp/python-mode
$ cp /tmp/python-mode/* ~/.emacs.d/snippets/python-mode/

#Demo ##Parse arguments Demonstration of snippet parameters is shown below.

  • This snippet parses dummy argument part. (supports class and def)

alt text

##Successive expansion It is possible to combine the above snippet with snippet defwithdoc which is for function with docstring.
To use this, you need to write following emacs lisp in ~/.emacs.d/init.el.

(setq yas-triggers-in-field t)

Demonstration of successive expansion is shown below.

  • Expand snippet by only tab key.

alt text

About

snippet for docstring in numpy coding style

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published