unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Micha Feigin <michf@post.tau.ac.il>
Subject: c indentation - replace spaces with tabs
Date: Sun, 7 Dec 2003 15:57:31 +0200	[thread overview]
Message-ID: <20031207135731.GA17061@luna.mooo.com> (raw)

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]

             reply	other threads:[~2003-12-07 13:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-07 13:57 Micha Feigin [this message]
2003-12-07 15:19 ` c indentation - replace spaces with tabs Eli Zaretskii
     [not found] <mailman.1301.1070809217.399.help-gnu-emacs@gnu.org>
2003-12-08 21:21 ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031207135731.GA17061@luna.mooo.com \
    --to=michf@post.tau.ac.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).