*BSD News Article 41559


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:16190 gnu.emacs.help:24049
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.hawaii.edu!ames!agate!howland.reston.ans.net!swrinde!pipex!uunet!news1.hh.ab.com!news1.hh.ab.com!werner
From: werner@sparcserver.mc.ab.com (tim werner)
Newsgroups: comp.os.386bsd.questions,gnu.emacs.help
Subject: Re: Gnu emacs-19.28 and FreeBSD-2.0R
Date: 17 Jan 1995 12:34:23 GMT
Organization: Allen-Bradley Company, Inc.
Lines: 31
Distribution: inet
Message-ID: <WERNER.95Jan17073423@sparcserver.mc.ab.com>
References: <MORGAN.95Jan11142736@world.std.com>
	<GROSSJOH.95Jan12122833@linus.informatik.uni-dortmund.de>
	<D2B62L.9ou@mv.mv.com>
NNTP-Posting-Host: sparcserver.mc.ab.com
To: shaman@mv.mv.com (Coranth Gryphon)
In-reply-to: shaman@mv.mv.com's message of Thu, 12 Jan 1995 19:56:44 GMT

>Newsgroups: comp.os.386bsd.questions,gnu.emacs.help
>From: shaman@mv.mv.com (Coranth Gryphon)
>Date: Thu, 12 Jan 1995 19:56:44 GMT
>
>I cannot get the tab key to insert a tab. The only thing that I've gotten
>to work is "^qTAB" (ie. quoted tab).

Use "C-h v indent-tabs-mode".  Documentation says "*Indentation can
insert tabs if this is non-nil".  Probably in your site-start.el or your
own .emacs, this is set to nil, which is really better except for
makefiles.  I have this to make tabs insert as tabs for makefiles:

   ;; Use spaces instead of tabs when indenting, except for makefiles
   (setq-default indent-tabs-mode nil)
   
   (or (assoc "[Mm]akefile.*\\'" auto-mode-alist)
       (setq auto-mode-alist
             (cons '("[Mm]akefile.*\\'" . makefile-mode) auto-mode-alist)))
   (or (assoc ".*make_rules\\'" auto-mode-alist)
       (setq auto-mode-alist
             (cons '(".*make_rules\\'" . makefile-mode) auto-mode-alist)))
   (setq makefile-mode-hook (function (lambda () (setq indent-tabs-mode t))))


I you insist on putting ugly tab characters into your files, you should
be able to put "(setq indent-tabs-mode t)" in .emacs.

good luck,
tw
--
Do not drink coffee in early A.M.  It will keep you awake until noon.