[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs] tabs, spaces, and indentation
From: |
despen |
Subject: |
Re: [emacs] tabs, spaces, and indentation |
Date: |
Wed, 08 Dec 2010 15:31:05 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Nerius Landys <nlandys@gmail.com> writes:
> Hi. I use emacs all the time for programming and shell scripting. Now
> I'm dabbling in an open source project that is written in C, and the
> entire code base uses tabs extensively (instead of spaces for
> indentation). I very much prefer to use spaces for indentation; however I
> must use tabs for this project in order to make the code consistent. I am
> looking for some quick command or something that will place my emacs into
> a special mode that is suitable for working with tabbed C code. Then of
> course I'd like a command that puts me back into the regular settings that
> I have and am used to. (In other words, a toggle on and off.)
>
> Here are some details.
>
> I am running FreeBSD 8.0 and I have emacs installed with no X11, from the
> port editors/emacs-nox11. The version of emacs is 23.2_4,2. I have no
> additional bells and whistles installed for emacs other than what comes
> with this FreeBSD port and my .emacs config, which is more or less like
> so:
>
> (setq transient-mark-mode t)
> (setq make-backup-files nil)
> ;(setq-default indent-tabs-mode nil) [ commented out ]
> (setq-default c-basic-offset 2)
>
> I tried searching on Google for commands that may help me, but most of
> what I found explained how to enable the kind of behavior that I'm NOT
> looking (I'm going in the opposite direction unfortunately).
Check here:
http://www.mail-archive.com/fvwm-workers@lists.math.uh.edu/msg08136.html
- Re: [emacs] tabs, spaces, and indentation,
despen <=