Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Aug 2000 12:38:26 -0700
From:      Darryl Okahata <darrylo@soco.agilent.com>
To:        Udo Erdelhoff <ue@nathan.ruhr.de>
Cc:        freebsd-doc@FreeBSD.ORG
Subject:   Re: TAB vs 8. Spaces (was Re: cvs commit: doc/en_US.ISO_8859-1/books/faq book.sgml) 
Message-ID:  <200008091938.MAA05597@mina.soco.agilent.com>
In-Reply-To: Your message of "Wed, 09 Aug 2000 21:20:25 %2B0200." <20000809212025.H3413@nathan.ruhr.de> 

next in thread | previous in thread | raw e-mail | index | archive | help
Udo Erdelhoff <ue@nathan.ruhr.de> wrote:

> The sample settings for vim (doc/share/sgml/vim) enforce "spaces only"
> for .sgml/.html/.ent-files.

     If people decide that tabs should not be used, here is the magic
code to tell XEmacs/Emacs to use only spaces when editing sgml and html
documents.  Put the following code into your ~/.emacs file and restart
XEmacs/Emacs:

	(defun sgml-no-tabs ()
	  (let ()
	    (setq indent-tabs-mode nil)
	    ))
	
	(add-hook 'sgml-mode-hook 'sgml-no-tabs)
	(add-hook 'html-mode-hook 'sgml-no-tabs)

--
	Darryl Okahata
	darrylo@soco.agilent.com

DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Agilent Technologies, or
of the little green men that have been following him all day.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008091938.MAA05597>