From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sandipchitale@yahoo.com (Sandip Chitale) Newsgroups: gmane.emacs.help Subject: Is there a mode that helps enforce coding guidelines? Date: 28 May 2003 10:50:52 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054144650 21795 80.91.224.249 (28 May 2003 17:57:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 17:57:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed May 28 19:57:28 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19L5B2-0005fP-00 for ; Wed, 28 May 2003 19:57:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19L59c-0000A7-GD for gnu-help-gnu-emacs@m.gmane.org; Wed, 28 May 2003 13:56:00 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: 208.135.53.4 Original-X-Trace: posting.google.com 1054144253 22934 127.0.0.1 (28 May 2003 17:50:53 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 28 May 2003 17:50:53 GMT Original-Xref: shelby.stanford.edu comp.emacs:79415 gnu.emacs.help:113798 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10294 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10294 Well, there are some modes like JDEE (for Java) which integrate some external utilities which check the style e.g. checkstyle. When run the utility emits compiler error style output in a buffer. The error messages are hyperlinked to the source. Integration is not exactly the way you asked for but it is useful. sandip petter_wintzell@yahoo.com (Petter Wintzell) wrote in message news:... > Hi, > > Is there an Emacs mode that can help a programmer follow a set of > coding guidelines and style rules? I am thinking of the simple rules > that exist in many companies and projects regarding line length, > comment style, indent style, hanging braces, variable names and what > not. > > I would like a mode that highlighted the text when I broke a > guideline. It would also be nice if the mode could help me correct the > error. > > One thing that would also be nice is if one could switch between > different rule sets, so that I can easily have one set of rules when > coding at work, one when coding at home, one when participating in a > particular open source project, etc. > > Is there any such mode or functionality? > > Regards, > /Petter