[Insight-developers] One for the Emacs Gurus -- elisp Pretty-print that supports standard ITK indent?

kent williams norman-k-williams at uiowa.edu
Thu Jul 23 10:25:41 EDT 2009


If you've solved this problem to your own satisfaction, share your Elisp
code...

The ITK standard formatting is to NOT indent inside the itk namespace.

namespace itk
{
class MyGroovyFilter : public ImageToImageFilter
{
public:
  SetMyGroovyParameter(int x);
};

}

Emacs, as a default, and with some customizations sent me years ago, dearly
wants to indent everything inside the namespace, and by default, will betray
you and override your hand-made indentation if you hit a tab or type a
semicolon at the end of a statement.

So who has the fanciest, most KWStyle-correct C++-mode customizations?

As an unrelated aside, if you do any html or xml editing in Emacs,
nXML http://www.thaiopensource.com/nxml-mode/ and nXHTML
http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html are pretty awesome...
NXHTML recognizes and does useful things with PHP in addition to straight
html...



More information about the Insight-developers mailing list