Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: tab stops in emacs (C)

5 views
Skip to first unread message

Kimi-Ivy

unread,
Mar 23, 2014, 3:49:28 AM3/23/14
to
"cisco" <ci...@houston.rr.com> writes:

> I'm primarly a windows user so when i write C/C++ in emacs i don't like the
> way it handles tabs. I would like to icnrease the tabs to 4 and would like
> to use a tab character rather than spaces. And would also like to be able to
> do this
> int x;
> int y
> ie
> \tint\tx;
> \tint\ty
>
> but after the first tab it won't let me do this again.. It might be the way
> the .emacs c file handles tabs so i can always use spaces for that .. i just
> really would like to increase my tab stops.
>
> I have found this through searching
>
> (setq tab-width 4)
> (setq indent-tabs-mode t)
> (setq c-tab-always-indent t)
>
> but they don't seem to work. Any help would be appreciated
>
> Thanks
>
>
I tested following settings, they are ok:

(setq tab-width 4)
(setq indent-tabs-mode t)
(global-set-key (kbd "<tab>") `tab-to-tab-stop)

--
Coffee should be black as hell, strong as death and sweet as love.
-- Turkish proverb
0 new messages