From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: pemente@northpark.edu (Eric Pement) Newsgroups: gmane.emacs.help Subject: Re: problem getting hooks to be active Date: 15 Aug 2003 07:54:01 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <227a55e9.0308150654.702a3b40@posting.google.com> References: <227a55e9.0308110934.1eb23f37@posting.google.com> <87ptjc3x6r.fsf@lorien.concordia.ca> <227a55e9.0308120832.2269bcb3@posting.google.com> <87isp2u895.fsf@lorien.concordia.ca> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1060959959 19350 80.91.224.253 (15 Aug 2003 15:05:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 15:05:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 17:05:58 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ng9N-0000Cn-00 for ; Fri, 15 Aug 2003 17:05:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ng4t-00005N-8E for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2003 11:01:19 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 66.185.249.144 Original-X-Trace: posting.google.com 1060959243 12926 127.0.0.1 (15 Aug 2003 14:54:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 15 Aug 2003 14:54:03 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:115919 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11837 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11837 Peter Solodov wrote in message news:<87isp2u895.fsf@lorien.concordia.ca>... > On 12 Aug 2003, Eric Pement wrote: > > So what should I have written instead that will change the variables > > while in sgml-mode? > > (add-hook 'sgml-mode-hook > (lambda () > (setq tab-width 2) > (setq indent-tabs-mode nil) > (setq fill-column 85))) > > That code worked just now. It doesn't appear very different (or at > all) from what you've shown. > > Put code above into "*scratch*" buffer and evaluate it (press "C-x > C-e" at the end of the last line). Then try to open SGML file. If > that works, then you're not putting your code into the right place. > > - Peter Wow, that was really a great answer. Thanks for being so direct and helpful. As it turns out, it worked when I put it into the *scratch* buffer and followed your instructions. But when I put it into my .emacs file, it doesn't work. I tried moving it to the very FIRST instruction at the top, and also to practically the LAST instruction ... technically, just above the "custom-set-variables" line. But in neither case does it change things for my XML files. (sigh) I guess my next step is a slow, line-by-line debug. Well, at least you've put me on the right track. I think I can manage from here. -- Eric Pement