At my shop some of us use Emacs, some CodeWrite, some other IDEs. We have
developed our own Java coding conventions and have selected the tool
JIndent (see http://home.wtal.de/software-solutions/jindent/frameset.html)
to ensure a standard formating of the code. This is especially important
since CodeWrite does not understand the difference between a tab stop and
the tab character.

I would like to develop an Emacs command that would run JIndent on the
current buffer but do not know enough Elisp to proceed. JIndent can read
from standard in and write to standard out as well as process a file named
on the command line.

The basic command that I would like would:

1. Feed the contents of the current buffer to Jindent.

2. Replace the contents of the current buffer with the output of Jindent.

The command line used to run Jindent would need to be a customizable
parameter.

Can someone guide me on the implementation? Point me to some similar Elisp?

Thanks in advance

Erik Husby
Domain Pharma Corp
Suite 110           Vox: 781-778-3834
10 Maguire Rd       Fax: 781-778-3800
Lexington, MA 02421 Email: [EMAIL PROTECTED]

Reply via email to