Sometime you just need a long trans atlantic flight and a stupidly long stop-over in a random city to do some of those task that can improveÂ your day to day but you never take some time to do it.
When using emacs I wanted a simple way to launch a nosetests on the current function my cursor is in Emacs.Â The syntax on nosetests is a bit tricky and I actually always have to look at my shell history to know the proper syntax (nosetests directory/filename.py:Class.function).
I created a simple wrapper for emacs for Â that which allow to just hit a key to copy the nosetests command to feed to your shell or to use it for the compile buffer.
It’s available from here :
I have binded those keys for my python mode hook :
(local-set-key (kbd "C-S-t") 'nosetests-copy-shell-comand) (local-set-key (kbd "C-S-r") 'nosetests-compile)
UPDATE: There was an another nose mode already that does much more available here : https://bitbucket.org/durin42/nosemacs/