Quantcast
Channel: Planet Plone - Where Developers And Integrators Write
Viewing all articles
Browse latest Browse all 3535

Youenn Boussard: Launch zope instance with emacs

$
0
0

I use Emacs for my developpement.

Shell mode is great. Interactive debugging on emacs also. But I always repeat the same thing : open an emacs shel , rename it, go to my instance and launch it . Well with emacs ,very easy to automate this with a simple function :

(defun launch-instance ()
   " launch zopeinstance  "
   (interactive)
   (shell)
   (rename-buffer "*zopeinstance*")
   (insert "cd path_to_your_buildout")
   (comint-send-input)
   (insert "bin/instance fg")
   (comint-send-input)
)

And M-x launch-instance open a new shell and launch your zopeinstance in debug mode.
Very easy isn’t it !



Viewing all articles
Browse latest Browse all 3535

Trending Articles