unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Subject: Re: tab in all modes
Date: 23 Feb 2004 08:23:31 +0200	[thread overview]
Message-ID: <un07atiu4.fsf@elta.co.il> (raw)
In-Reply-To: <20040222212546.GA849@afro> (message from Piotr Piwko on Sun, 22 Feb 2004 22:25:46 +0100)

> Date: Sun, 22 Feb 2004 22:25:46 +0100
> From: Piotr Piwko <piotrpiwko@afro.afraid.org>
> 
> ;; C-MODE
> (add-hook 'c-mode-common-hook '(lambda ()
> 	(setq c-syntactic-indentation nil)
> 	(setq c-indent-level 4)
> 	(setq c-basic-offset 4)
> 	(setq c-indent-tabs-mode 1)
> 
> What I must put in .emacs, to have tabs in all modes, not only c-mode.

What modes, specifically?  ``All modes'' is too many to think about ;-)

In general, you want to set indent-tabs-mode, I think.  (What is
c-indent-tabs-mode, btw?  I don't see it in my Emacs.)

IIRC, Emacs uses TABs by default in all modes except Text mode and its
derivatives (like Texinfo mode, Mail mode, etc.).  In other words,
modes designed for writing programs already use TABs unless the
relevant programming language requires spaces.

      reply	other threads:[~2004-02-23  6:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-22 21:25 tab in all modes Piotr Piwko
2004-02-23  6:23 ` Eli Zaretskii [this message]

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=un07atiu4.fsf@elta.co.il \
    --to=eliz@elta.co.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).