From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: amit mehta Newsgroups: gmane.emacs.help Subject: Need Help: insert tab(8 characters) for every tabstroke Date: Mon, 8 Aug 2011 19:35:58 +0530 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1312839557 3092 80.91.229.12 (8 Aug 2011 21:39:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 21:39:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 23:39:13 2011 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 1QqXXV-0005XN-ED for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2011 23:39:13 +0200 Original-Received: from localhost ([::1]:39993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqXXU-0000S0-NS for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Aug 2011 17:39:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqQSv-0007nh-Rb for help-gnu-emacs@gnu.org; Mon, 08 Aug 2011 10:06:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqQSu-0004iq-Dn for help-gnu-emacs@gnu.org; Mon, 08 Aug 2011 10:06:01 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:35872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqQSt-0004iQ-Th for help-gnu-emacs@gnu.org; Mon, 08 Aug 2011 10:06:00 -0400 Original-Received: by wwf10 with SMTP id 10so2370355wwf.30 for ; Mon, 08 Aug 2011 07:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=WWh2ZFPdKivAX9O6sxrViscmBIRJqCwwcsrJitcsSyo=; b=RelgDGn5J1ngS6RiczuHjcs+M6BZRlSYu7SLp3PdpvEL+xbR9IyJQOwk8WmoJj2TMA 1N0QCCuCf4ReUOXsv/+KxMg7/UXJym8M6oz+t4qCzrcnn3YW6F00CJ4WKJWH+hdiTx96 A2TiapmcLTS1ty+3Eyri+8gy4WMWrdomHUVe0= Original-Received: by 10.216.188.129 with SMTP id a1mr3170969wen.52.1312812358542; Mon, 08 Aug 2011 07:05:58 -0700 (PDT) Original-Received: by 10.216.168.200 with HTTP; Mon, 8 Aug 2011 07:05:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 X-Mailman-Approved-At: Mon, 08 Aug 2011 17:39:06 -0400 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:81906 Archived-At: I'm a complete n00b and hence please don't shower your wrath upon me. I'm finding it little difficult to use TABS in my 'C' programs. I've been a vim user till last week and have slowly started to migrate towards mighty emacs. In vim, I usually indent my code with tabs, where each tab stroke replaces the cursor by 8 columns, but in an emacs buffer, a tab stroke doesn't work this way by default. I did some text search and based on that, have added the following line under $HOME/.emacs: (setq indent-tabs-mode t) but this doesn't work(i mean, hitting the TAB key on my keyboard doesn't move forward the cursor to 8 columns to the right), so every time i need a TAB, I've to use C-q . this is overkill. Then I tried putting just this entry in $HOME/.emacs, but this too doesn't work (setq default-tab-width 8); Please help. -amit