unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* tab in all modes
@ 2004-02-22 21:25 Piotr Piwko
  2004-02-23  6:23 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Piotr Piwko @ 2004-02-22 21:25 UTC (permalink / raw)


Hello!

Can I turn on tabs in all modes, not singly? Now I have in ~/.emacs:

;; 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.

Thank you for any help

-- 
Piotr Piwko
http://afro.afraid.org/~afro

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: tab in all modes
  2004-02-22 21:25 tab in all modes Piotr Piwko
@ 2004-02-23  6:23 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2004-02-23  6:23 UTC (permalink / raw)


> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-23  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 21:25 tab in all modes Piotr Piwko
2004-02-23  6:23 ` Eli Zaretskii

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).