From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Benjamin Rutt Newsgroups: gmane.emacs.help Subject: Re: C++ Indentation Date: Sun, 11 Jan 2004 00:56:41 -0500 Organization: The Ohio State University Dept. of Computer and Info. Science Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073800933 3584 80.91.224.253 (11 Jan 2004 06:02:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2004 06:02:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 11 07:02:10 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AfYfp-0001CH-00 for ; Sun, 11 Jan 2004 07:02:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AfZbK-0006J8-TF for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Jan 2004 02:01:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!news-hog.berkeley.edu!ucberkeley!news.cis.ohio-state.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: mu.cis.ohio-state.edu Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) Cancel-Lock: sha1:gkazu/MgiWpVxRgiJVxYDTM9TS0= Original-Xref: shelby.stanford.edu gnu.emacs.help:119981 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15923 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15923 David Rasmussen writes: > I want both automatic indentation, and manually inserted tabs to be 2 > spaces (no tab characters). I use the ellemtel style. And when I press > tab, it indents 4 spaces, not 2. (defun my-c++-hook () (interactive) (setq indent-tabs-mode nil) (setq c-basic-offset 2) (setq tab-stop-list '(2 4 6 8 10 12 14 16 18 20 22 24 26 28 30))) (add-hook 'c++-mode-hook 'my-c++-hook) -- Benjamin