From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: .emacs Date: Sat, 28 Dec 2002 12:02:20 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <847kdu2ypv.fsf@lucy.cs.uni-dortmund.de> References: <3E0CCD32.90602@free.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041073588 2907 80.91.224.249 (28 Dec 2002 11:06:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2002 11:06:28 +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 18SEnS-0000kk-00 for ; Sat, 28 Dec 2002 12:06:26 +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 18SEma-0004O5-03 for gnu-help-gnu-emacs@m.gmane.org; Sat, 28 Dec 2002 06:05:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!p50876b5f.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: p50876b5f.dip.t-dialin.net (80.135.107.95) Original-X-Trace: fu-berlin.de 1041073351 8341845 80.135.107.95 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:DBl/OebuXoKu5A6vAJZzURw9Ai4= Original-Xref: shelby.stanford.edu gnu.emacs.help:108528 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:5057 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5057 Oodini writes: > I am reading "Programmiong with GNU tools", and so I am discovering Unix. > > They say in the book that I am supposed to find in my user directory > the file .emacs. It wasn't there. So I created it Good! > and put these lines inside: > > (setq c-indent-level 5) The above variable is for antique Emacsen only. I don't remember when this variable was obsoleted, but it must have been in the mid-nineties. > (setq c-continued-statement-offset 5) > (setq c-argdecl-indent 0) > (setq c-brace-offset -5) > (setq c-label-offset -5) > > I don't know yet EMacs, but I suppose that with this file, indents > must be 5 characters when I am in C mode. But that doesn't work... > > PLease confirm the supposed behaviour of EMacs with this setup. I prefer not to try this antique code... I suggest that you read the documentation that comes with Emacs. It's always up to date. In this case, C-h i access the documentation browser, then you can TAB your way to the CC mode manual (or use the cursor keys or the mouse) and hit RET (or middle mouse button) on the link. This will take you to the CC mode manual. It contains a description of customizing indentation. Does this help? -- Ambibibentists unite!