Article View: gnu.emacs.help
Article #188753SUMMARY: Spaces rather than tabs in C-mode
From: Andrew Torda
Date: Tue, 02 Jul 1991 07:11
Date: Tue, 02 Jul 1991 07:11
28 lines
1398 bytes
1398 bytes
Original question from me:
) I prefer spaces to tabs in my C source.
) On a per-buffer basis, I can do it through edit-options, but how do I
) do it forever in every buffer ?
)
) I tried
) (setq indent-tabs-mode nil)
) and
) (setq c-mode-hook (setq indent-tabs-mode nil))
) but I keep getting tabs.
Most succinct answer (from several people) was:
(setq c-mode-hook '(lambda () (setq indent-tabs-mode nil)))
Other answers turned off tabs completely, rather than just in c-mode.
Thanks to all who responded and set me straight about how my attempts
would just be setting c-mode-hook to nil, the result of the setq.
Thanks to :
taipan!atlantis!don@uunet.UU.NET
jyacc!db%entropy@uunet.UU.NET
wohler@sap-ag.de
scott@statsci.com
sun.com!nosun!yamada-sun!eric
peter@objy.com
Technical Details
Message-ID:
<1991Jul2.091151@igc.ethz.ch>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!cernvax!chx400!bernina!igc.ethz.ch!tordaShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,46fd3259b2c2c0b5,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-07-02 01:55:28 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!cernvax!chx400!bernina!igc.ethz.ch!torda From: torda@igc.ethz.ch (Andrew Torda ) Newsgroups: gnu.emacs.help Subject: SUMMARY: Spaces rather than tabs in C-mode Message-ID: <1991Jul2.091151@igc.ethz.ch> Date: 2 Jul 91 07:11:50 GMT Sender: news@bernina.ethz.ch (USENET News System) Organization: InformatikgestutzteChemie, ETH, Zurich Lines: 28 Nntp-Posting-Host: hermitage