all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need Help: insert tab(8 characters) for every tabstroke
@ 2011-08-08 14:05 amit mehta
  2011-08-08 21:41 ` Jai Dayal
  2011-08-08 23:45 ` PJ Weisberg
  0 siblings, 2 replies; 4+ messages in thread
From: amit mehta @ 2011-08-08 14:05 UTC (permalink / raw
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-09  4:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-08-08 23:45 ` PJ Weisberg

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.