all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: amit mehta <gmate.amit@gmail.com>
To: Jai Dayal <dayalsoap@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Need Help: insert tab(8 characters) for every tabstroke
Date: Tue, 9 Aug 2011 10:26:08 +0530	[thread overview]
Message-ID: <CAOUxTKPQovroM95uTo=Y2r57uVTOP9YJ-KKNqoWzZ_ER+a9krA@mail.gmail.com> (raw)
In-Reply-To: <CAMJ-YiQ=rYtdd9KvFCGWyD7deG=2veT9gX8BiU4W95-tdjnz4w@mail.gmail.com>

On Tue, Aug 9, 2011 at 3:11 AM, Jai Dayal <dayalsoap@gmail.com> wrote:
> Try fiddling with c-set-style
>
> http://www.phys.ufl.edu/docs/emacs/emacs_254.html
>
> Here's a list of built in c-styles
>
> http://www.delorie.com/gnu/docs/emacs/cc-mode_24.html
>
> On Mon, Aug 8, 2011 at 8:05 AM, amit mehta <gmate.amit@gmail.com> wrote:
>>
>> 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
>>
>
>
Thank you very much. This one very much solved my issue:
http://www.delorie.com/gnu/docs/emacs/cc-mode_39.html

-amit



  reply	other threads:[~2011-08-09  4:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-08 14:05 Need Help: insert tab(8 characters) for every tabstroke amit mehta
2011-08-08 21:41 ` Jai Dayal
2011-08-09  4:56   ` amit mehta [this message]
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='CAOUxTKPQovroM95uTo=Y2r57uVTOP9YJ-KKNqoWzZ_ER+a9krA@mail.gmail.com' \
    --to=gmate.amit@gmail.com \
    --cc=dayalsoap@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.