From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: Indentation setting for C-Sharp files. Date: Sun, 8 Jan 2012 08:41:00 +0100 Message-ID: References: <87sjjrnzqy.fsf@wanadoo.es> <87obufnuuk.fsf@wanadoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326008499 12192 80.91.229.12 (8 Jan 2012 07:41:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2012 07:41:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?UTF-8?Q?=C3=93scar_Fuentes?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 08 08:41:35 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RjnNm-0000bO-W6 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 08:41:35 +0100 Original-Received: from localhost ([::1]:43004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjnNj-0005vO-HR for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jan 2012 02:41:31 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjnNe-0005v3-Hw for help-gnu-emacs@gnu.org; Sun, 08 Jan 2012 02:41:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjnNa-0005iU-Bk for help-gnu-emacs@gnu.org; Sun, 08 Jan 2012 02:41:26 -0500 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:58837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjnNa-0005hz-8W for help-gnu-emacs@gnu.org; Sun, 08 Jan 2012 02:41:22 -0500 Original-Received: by yhoo21 with SMTP id o21so406894yho.0 for ; Sat, 07 Jan 2012 23:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=WS7gQr8ByXrAzRKB6lQ1XjkrUwPzhMTTrG0yAZga5Ck=; b=gmGZ2AM9wbMAZglOf+K1vtSVvsIS6AbEvrgrR8YTM6fm4+AuF8ahJm/jWOR1TsRVTi g98OFZ+C8hgaw9bnxAcS6YA9LQedgXnzSbSnOZJy+vlhJc78AzoJa2X51xv3nuBwn1ku H0SrYk2ScXU4we4qYHxb6qaSyv0QlAhhfSUGI= Original-Received: by 10.236.189.72 with SMTP id b48mr464826yhn.78.1326008481215; Sat, 07 Jan 2012 23:41:21 -0800 (PST) Original-Received: by 10.147.182.7 with HTTP; Sat, 7 Jan 2012 23:41:00 -0800 (PST) In-Reply-To: <87obufnuuk.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83408 Archived-At: Hi =C3=93scar, On Sat, Jan 7, 2012 at 21:03, =C3=93scar Fuentes wrote: > Guido Van Hoecke writes: > >>>> Is there a way to force emacs to only use tabs for indentation? And su= ch >>>> a setting exists, could it also define the tab width to 4, but still u= se >>>> tabs (so three tabs at the start of the line would be displayed as 12 >>>> whitespace columns)? >>> >>> See the variables tab-width and indent-tabs-mode. >> >> My tab-width is 8 and indent-tabs-mode is t, also in my C# buffers, but >> that does not cause the expected behaviour. > > It does for me. After visiting a .cs file (this activates csharp-mode on > my setup): > > M-x set-variable [enter] tab-width [enter] 4 [enter] > M-x set-variable [enter] indent-tabs-mode [enter] t [enter] > > now the lines I insert use 4 column wide tabs for indenting. > This works in an 'emacs -q' session. So now I've seen that it can work, I'll have to selectively disable parts of my setup until I find the culprit. Thanx for reminding me of the basics :) Kind regards, Guido -- I've always felt sorry for people that don't drink -- remember, when they wake up, that's as good as they're gonna feel all day! http://vanhoecke.org ... and go2 places!