From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Dziulko Newsgroups: gmane.emacs.help Subject: Pre-processor commands in c-mode Date: Fri, 21 Mar 2003 15:01:29 -0500 (EST) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1048277216 1422 80.91.224.249 (21 Mar 2003 20:06:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 20:06:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 21 21:06:54 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 18wSmz-0000Me-00 for ; Fri, 21 Mar 2003 21:06:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wSle-0007BZ-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Mar 2003 15:05:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18wSjJ-0005Pl-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 15:03:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18wSiz-0004cO-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 15:02:47 -0500 Original-Received: from klaatu.canisius.edu ([138.92.8.100]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wShm-00037m-00 for help-gnu-emacs@gnu.org; Fri, 21 Mar 2003 15:01:30 -0500 Original-Received: from localhost (dziulko@localhost) by klaatu.canisius.edu (8.11.6/8.11.6) with ESMTP id h2LK1Tp26624 for ; Fri, 21 Mar 2003 15:01:29 -0500 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:7799 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7799 Hello Does any one know of a good method / setting / package for better handling of pre-processor commands in c-mode, specificly spacing and auto-indentation? For example, if I enter the folloeing code, the #endif moves to the beginning of the line when I press enter after it. int main () { if (x) { #ifdef DEBUG printf("null"); #endif } } Thanks for any help. Kevin