From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Solodov Newsgroups: gmane.emacs.help Subject: Re: problem getting hooks to be active Date: Tue, 12 Aug 2003 12:54:14 -0400 Organization: Concordia University Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87isp2u895.fsf@lorien.concordia.ca> References: <227a55e9.0308110934.1eb23f37@posting.google.com> <87ptjc3x6r.fsf@lorien.concordia.ca> <227a55e9.0308120832.2269bcb3@posting.google.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060707670 20735 80.91.224.253 (12 Aug 2003 17:01:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Aug 2003 17:01:10 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 12 19:01:08 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 19mcWC-0000Dc-00 for ; Tue, 12 Aug 2003 19:01:08 +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 19mcVd-0002lC-37 for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Aug 2003 13:00:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!newsflash.concordia.ca!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: lorien.concordia.ca NNTP-Posting-User: peter User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:vsEuidwexPLaIPAuI27Zb9sPnjo= Original-Xref: shelby.stanford.edu gnu.emacs.help:115835 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:11754 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11754 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 -- Peter Solodov | Concordia University http://alcor.concordia.ca/~peter | Montreal, QC, Canada