Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!rochester!pt.cs.cmu.edu!madrid.mt.cs.cmu.edu!toad From: toad@CS.CMU.EDU (Todd Kaufmann) Newsgroups: comp.emacs Subject: Re: Changing Tab/spaces in emacs Message-ID: Date: 12 Oct 90 22:58:07 GMT References: <1990Oct11.150105.15568@cimage.com> Sender: toad@madrid.mt.cs.cmu.edu Organization: School of Computer Science, Carnegie Mellon University Lines: 37 In-reply-to: wags@cimage.com's message of 11 Oct 90 15:01:05 GMT [Oops, I had a reading problem the first time and posted the opposite thing.] I have a question regarding emacs: How do I get it to fill blank spaces with TAB characters, rather than space characters. I do not want to lose the TABbing features of the C mode, but a different key mapping may be useful. Not a key mapping, just C-h v indent-tabs-mode: ======================= indent-tabs-mode's value is t Documentation: *Indentation can insert tabs if this is non-nil. Setting this variable automatically makes it local to the current buffer. So put (setq indent-tabs-mode t) in your .emacs if you like. If you want it only in c-mode, for example: (setq c-mode-hook '(lambda ()(setq indent-tabs-mode t))) and any other -mode-hooks, as appropriate. -todd