From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Micha Feigin Newsgroups: gmane.emacs.help Subject: c indentation - replace spaces with tabs Date: Sun, 7 Dec 2003 15:57:31 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20031207135731.GA17061@luna.mooo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070805802 14233 80.91.224.253 (7 Dec 2003 14:03:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2003 14:03:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 07 15:03:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ASzVH-0005Na-00 for ; Sun, 07 Dec 2003 15:03:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT0Ot-0003oe-Op for geh-help-gnu-emacs@m.gmane.org; Sun, 07 Dec 2003 10:00:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AT0OM-0003o3-9b for help-gnu-emacs@gnu.org; Sun, 07 Dec 2003 10:00:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AT0No-0003ZS-Lz for help-gnu-emacs@gnu.org; Sun, 07 Dec 2003 10:00:11 -0500 Original-Received: from [132.66.16.11] (helo=post.tau.ac.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AT0No-0003XE-90 for help-gnu-emacs@gnu.org; Sun, 07 Dec 2003 09:59:40 -0500 Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by post.tau.ac.il (Postfix) with ESMTP id C342315F57C for ; Sun, 7 Dec 2003 15:58:11 +0200 (IST) Original-Received: from post.tau.ac.il (localhost.localdomain [127.0.0.1]) by localhost.localdomain (VaMailArmor-2.0.1.16) id 14437-1073F15A; Sun, 07 Dec 2003 15:58:11 +0200 Original-Received: from litshi.luna.local (bzq-218-100-249.red.bezeqint.net [81.218.100.249]) by post.tau.ac.il (Postfix) with ESMTP id 5C40A15F57F for ; Sun, 7 Dec 2003 15:58:11 +0200 (IST) Original-Received: from micha by litshi.luna.local with local (Exim 4.24) id 1ASzPf-0004RP-Vl for help-gnu-emacs@gnu.org; Sun, 07 Dec 2003 15:57:32 +0200 Original-To: help-emacs Content-Disposition: inline User-Agent: Mutt/1.5.4i X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.23.0.1; VDF: 6.23.0.2; host: localhost) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15013 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15013 Is it possible to make emacs automatically replace every 8 consecutive spaces with a tab? (this can actually be done in indentation time instead of write time if I menage to get the indentations right). I am looking to get the same functionality gotten in vim for: set ts=8 set sw=4 For example, when a line is indented 12 spaces it would be replaced with [tab]4*[space]