From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "VICTOR TARABOLA CORTIANO" Newsgroups: gmane.emacs.help Subject: Emacs behavior Date: Sun, 02 May 2010 02:18:49 -0300 Message-ID: <20100502051849.6B0CF70000090@urquell.c3sl.ufpr.br> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1272816062 15113 80.91.229.12 (2 May 2010 16:01:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 May 2010 16:01: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 Sun May 02 18:01:01 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O8bbD-0005WS-9Y for geh-help-gnu-emacs@m.gmane.org; Sun, 02 May 2010 18:00:55 +0200 Original-Received: from localhost ([127.0.0.1]:53962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8bbB-0005rj-Nt for geh-help-gnu-emacs@m.gmane.org; Sun, 02 May 2010 12:00:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O8Ra9-0003gc-Ib for help-gnu-emacs@gnu.org; Sun, 02 May 2010 01:19:09 -0400 Original-Received: from [140.186.70.92] (port=48088 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O8Ra7-0003fD-MW for help-gnu-emacs@gnu.org; Sun, 02 May 2010 01:19:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O8Ra6-00019D-Ik for help-gnu-emacs@gnu.org; Sun, 02 May 2010 01:19:07 -0400 Original-Received: from mx.c3sl.ufpr.br ([200.17.202.3]:42286 helo=urquell.c3sl.ufpr.br) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O8Ra6-00017v-BK for help-gnu-emacs@gnu.org; Sun, 02 May 2010 01:19:06 -0400 Original-Received: from c3sl.ufpr.br (bowmore.c3sl.ufpr.br [200.17.202.53]) by urquell.c3sl.ufpr.br (Postfix) with SMTP id 6B0CF70000090 for ; Sun, 2 May 2010 02:18:49 -0300 (BRT) Original-Received: by c3sl.ufpr.br (sSMTP sendmail emulation); Sun, 02 May 2010 02:18:49 -0300 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Sun, 02 May 2010 11:59:33 -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:72879 Archived-At: Hi. I would like to change the default behavior of Emacs in C mode, I use tabs instead of spaces for editing, so I changed my .emacs[1] to behave the way I want. For instance, I want: function() { commands; } But Emacs automatically modify the text to: function() { commands; } It works the way I want in text-mode, but I want syntax highligting. I would like Emacs to behave like mg or vi in C mode. [1] This is the relevant part in my .emacs file: ;Tab stuff (global-set-key (kbd "TAB") 'self-insert-command) (global-set-key (kbd "TAB") 'tab-to-tab-stop) (setq-default tab-width 8) (setq-default tab-stop-list (list 8 16 24 32 40 ))