From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TriKri Newsgroups: gmane.emacs.help Subject: Indentation settings problems Date: Sat, 19 Sep 2009 03:46:41 -0700 (PDT) Message-ID: <25520490.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253377622 8920 80.91.229.12 (19 Sep 2009 16:27:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Sep 2009 16:27:02 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 19 18:26:55 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mp2lz-00068c-4Z for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 18:26:55 +0200 Original-Received: from localhost ([127.0.0.1]:33857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mp2ly-0001Ub-49 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 12:26:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoxSr-000555-Ds for help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 06:46:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoxSm-0004xm-0e for Help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 06:46:48 -0400 Original-Received: from [199.232.76.173] (port=39410 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoxSl-0004xb-RZ for Help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 06:46:43 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:42144) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoxSl-0005vp-6x for Help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 06:46:43 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MoxSj-0007rS-Qx for Help-gnu-emacs@gnu.org; Sat, 19 Sep 2009 03:46:41 -0700 X-Nabble-From: kristoferkrus@hotmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sat, 19 Sep 2009 12:21:40 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68304 Archived-At: Hi. I'm having some trouble getting the size of the indentation right. I'm writing a .cpp-file, but I guess the indentation will work in about the same way as for a .c-file. I'm running windows (more specifically windows 7), and I've just installed GNU Emacs 23.1.1. The indentation is 2 spaces right now. I prefer a tab instead (with tab width 4), or possibly 4 spaces if tab is not possible. Here is what I've tried: I enter the options, go to Editing->Indent, where I find that the variable "Standard Indent" is set to 4. I get 2 spaces when I indent, why not 4? Okay I get 2 spaces, so how do I change it? I have also tried changing "C Basic Offset" in Programming->Languages->C to "Override style settings: 4", but that doesn't work either. It's still indenting with 2 spaces. So, I would prefer 4 spaces instead of 2, or even better, a tab, and having the tab width set to 4 (how I now can change the tab width) so someone else with another text editor can apply another indentation size on my code by simply setting the tab width in their editor. Can someone tell me how to change this? And I'm an Emacs newbie, so you will have to tell me exactly which variables to change and how to change them. Thanks in advance -Kristofer -- View this message in context: http://www.nabble.com/Indentation-settings-problems-tp25520490p25520490.html Sent from the Emacs - Help mailing list archive at Nabble.com.