all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: amit mehta <gmate.amit@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Need Help: insert tab(8 characters) for every tabstroke
Date: Mon, 8 Aug 2011 19:35:58 +0530	[thread overview]
Message-ID: <CAOUxTKPGr3=9AX88LCSTYbP0EJkzSDnVf6PoZfPbiLb_-DKp1A@mail.gmail.com> (raw)

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 <tab>. 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



             reply	other threads:[~2011-08-08 14:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-08 14:05 amit mehta [this message]
2011-08-08 21:41 ` Need Help: insert tab(8 characters) for every tabstroke Jai Dayal
2011-08-09  4:56   ` amit mehta
2011-08-08 23:45 ` PJ Weisberg

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOUxTKPGr3=9AX88LCSTYbP0EJkzSDnVf6PoZfPbiLb_-DKp1A@mail.gmail.com' \
    --to=gmate.amit@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.