From: Guido Van Hoecke <guivho@gmail.com>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Indentation setting for C-Sharp files.
Date: Sun, 8 Jan 2012 08:41:00 +0100 [thread overview]
Message-ID: <CAEySM9Hou7rbAgGzzi9aDeUTE7=gK04H4OLgU2mK=shjj3O+fA@mail.gmail.com> (raw)
In-Reply-To: <87obufnuuk.fsf@wanadoo.es>
Hi Óscar,
On Sat, Jan 7, 2012 at 21:03, Óscar Fuentes <ofv@wanadoo.es> wrote:
> Guido Van Hoecke <guivho@gmail.com> writes:
>
>>>> Is there a way to force emacs to only use tabs for indentation? And such
>>>> a setting exists, could it also define the tab width to 4, but still use
>>>> 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!
prev parent reply other threads:[~2012-01-08 7:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-07 13:58 Indentation setting for C-Sharp files Guido Van Hoecke
2012-01-07 18:17 ` Óscar Fuentes
2012-01-07 19:04 ` Guido Van Hoecke
2012-01-07 20:03 ` Óscar Fuentes
2012-01-08 7:41 ` Guido Van Hoecke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEySM9Hou7rbAgGzzi9aDeUTE7=gK04H4OLgU2mK=shjj3O+fA@mail.gmail.com' \
--to=guivho@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=ofv@wanadoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).