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: problem getting hooks to be active Date: 11 Aug 2003 10:34:00 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <227a55e9.0308110934.1eb23f37@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1060623999 16025 80.91.224.253 (11 Aug 2003 17:46:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 17:46:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 11 19:46:38 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 19mGkg-0007xT-00 for ; Mon, 11 Aug 2003 19:46:38 +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 19mGkC-0007gW-Ss for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Aug 2003 13:46:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 66.185.249.144 Original-X-Trace: posting.google.com 1060623241 14189 127.0.0.1 (11 Aug 2003 17:34:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 11 Aug 2003 17:34:01 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:115806 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:11724 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11724 I'm trying to customize a few variables in sgml-mode (xml-mode), but the settings I want are not being obeyed. I don't know why, so I thought I'd post my .emacs snippet here and maybe someone could tell me what I'm doing wrong: (add-hook 'sgml-mode-hook' (lambda () (setq tab-width 2) (setq indent-tabs-mode nil) (setq fill-column 85) )) What I want should be obvious. When editing XML files, I want to change my tab width, fill column, and intent-tabs-mode behavior. But my alterations aren't being obeyed. I've tried adding --debug-init on the command line, but it doesn't bring up the debugger at all. I've tried doing M-x eval-buffer while editing my .emacs file, and eval-last-sexp after the function above, and gotten no error messages that I can detect. Any advice? I'm running GNU Emacs version 21.1.1 on Windows 2000 Pro, with 4NT as the basic shell.