all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jai Dayal <dayalsoap@gmail.com>
To: amit mehta <gmate.amit@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Need Help: insert tab(8 characters) for every tabstroke
Date: Mon, 8 Aug 2011 15:41:19 -0600	[thread overview]
Message-ID: <CAMJ-YiQ=rYtdd9KvFCGWyD7deG=2veT9gX8BiU4W95-tdjnz4w@mail.gmail.com> (raw)
In-Reply-To: <CAOUxTKPGr3=9AX88LCSTYbP0EJkzSDnVf6PoZfPbiLb_-DKp1A@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1700 bytes --]

  reply	other threads:[~2011-08-08 21:41 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 [this message]
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='CAMJ-YiQ=rYtdd9KvFCGWyD7deG=2veT9gX8BiU4W95-tdjnz4w@mail.gmail.com' \
    --to=dayalsoap@gmail.com \
    --cc=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.