Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!mentor.cc.purdue.edu!pur-ee!pur-phy!sho From: sho@pur-phy (Sho Kuwamoto) Newsgroups: comp.emacs Subject: simple question Message-ID: <2175@pur-phy> Date: 23 Apr 89 00:33:15 GMT Reply-To: sho@newton.physics.purdue.edu.UUCP (Sho Kuwamoto) Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 16 I have a simple question. I want to have GNU emacs set the tab width to 4 every time it goes into text mode. I've tried to put the following into my .emacs file: (setq text-mode-hook '(set-variable 'tab-width 4)) Which it promptly barfs on. I've also tried other combination of quotes, sticking in a lambda function, etc. with no success. I don't know lisp, though I'd like to learn, and have little knowledge of the innards of emacs. Please send responses by mail, since this is probably too simple to be of interest to most readers. While I'm here, how would I get it to do this and also set auto-fill to true at the same time? Thanks. -Sho