-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: 14 June 1999 12:25
To: [EMAIL PROTECTED]
Subject: JDE and indentation
I've been using JDE (and emacs, or specifically xemacs) for a short
while
now and although I like it, there's one thing that's bugging me. Our
coding
standards have indentation like:
if(bob == bill)
{
// blah...
}
From the O'Reilly book "Learning GNU Emacs" it describes changing
the
indentation for C, but this doesn't seem to work for Java/JDE. From
this
I've learned the style I don't like is "GNU" and it's the "K&R"
style I
want (but for Java).
I think I found the answer by a deja news search against the emacs
news group. Anyway, the command I use is c-set-offset, which I assume is
what the O'Reilly book describes. However you have to set them up in you jde
mode hook function.
Something along the lines of:
(defun my-jde-mode-hook()
(c-set-offset 'substatement-open 0)
(c-set-offset 'label '+))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
--
Matt
##########################################
This email, its content and any files transmitted with it are intended
solely for the addressee(s) and may be legally privileged and/or
confidential. Access by any other party is unauthorised without the
express written permission of the sender. If you have received this
email in error you may not copy or use the contents, attachments or
information in any way. Please destroy it and contact the sender on
the number printed above, via the Dresdner Kleinwort Benson
switchboard on +44 171 623 8000 or via e-mail return. Internet
communications are not secure unless protected using strong
cryptography. This email has been prepared using information believed
by the author to be reliable and accurate, but Dresdner Kleinwort
Benson makes no warranty as to accuracy or completeness. In particular
Dresdner Kleinwort Benson does not accept responsibility for changes
made to this email after it was sent. Any opinions expressed in this
document are those of the author and do not necessarily reflect the
opinions of the Bank or its affiliates. They may be subject to change
without notice.
##########################################