From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oodini Newsgroups: gmane.emacs.help Subject: C formatting Date: Sat, 28 Dec 2002 01:17:00 +0100 Organization: Guest of ProXad - France Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E0CED7C.7020002@free.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1041034919 12001 80.91.224.249 (28 Dec 2002 00:21:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2002 00:21:59 +0000 (UTC) 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 18S4jk-00037H-00 for ; Sat, 28 Dec 2002 01:21:57 +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 18S4il-0004G2-02 for gnu-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2002 19:20:55 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feeder2-1.proxad.net!news3-2.free.fr!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: fr-fr, fr Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-NNTP-Posting-Date: 28 Dec 2002 01:16:03 MET Original-NNTP-Posting-Host: 212.180.9.103 Original-X-Trace: 1041034563 news3-2.free.fr 22331 212.180.9.103:3678 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:108522 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:5051 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5051 hello, I am fighting with EMacs in order to get my programmation style: void function(int x, int y) { blabla; if (...) { blabla blabla } else blabla; } I ma desesperatly playing in my .emacs with the following statements, but no luck: (setq c-mode-hook (function (lambda () (setq c-basic-offset 0) (setq c-indent-level 5) (setq c-continued-statement-offset 5) (setq c-argdecl-indent 0) (setq c-brace-offset -5) (setq c-label-offset -5) ) ) ) If someone has the same formatiing habits, please give me your setup values... By the way, there is no way, in the buffer, to put two following tabs ?? Thanks for help ! -- . . . .:::. ### \|/ ` ___ ' :(o o): . (o o) (o o) - (O o) - ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-