From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: problem getting hooks to be active Date: Fri, 15 Aug 2003 14:59:33 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84u18j2i16.fsf@slowfox.is.informatik.uni-duisburg.de> References: <227a55e9.0308110934.1eb23f37@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 1060954738 10100 80.91.224.253 (15 Aug 2003 13:38:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 13:38:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 15:38:57 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 19nenB-00052A-00 for ; Fri, 15 Aug 2003 15:38: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 19nefZ-00021M-Cu for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2003 09:31:05 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!fu-berlin.de!uni-berlin.de!pd9e1e36d.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: pd9e1e36d.dip.t-dialin.net (217.225.227.109) Original-X-Trace: news.uni-berlin.de 1060952374 1175311 217.225.227.109 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:s0VjiSmpRHmZPtm0/UVauAeZPjw= Original-Xref: shelby.stanford.edu gnu.emacs.help:115916 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:11835 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11835 pemente@northpark.edu (Eric Pement) writes: > (add-hook 'sgml-mode-hook' > (lambda () > (setq tab-width 2) Do you know what tab-width does? I'm guessing that the code is doing what you tell it to, but it's not what you expect. If the file contains literal tab characters, then the above line will change how they are shown on screen. It has absolutely (well, almost) nothing to do with the TAB key. > (setq indent-tabs-mode nil) Hm. Well, do you have tab characters in your files? > (setq fill-column 85) How do you know it is not taking effect? What happens when you hit M-q? > )) A completely wild speculation is that you actually want to set sgml-indent-data to t to make it indent more often. Then you want to set sgml-indent-step to 2 (which is the default, afaik). And for filling, maybe you want to turn on auto-fill mode? Does this help? If it doesn't, please explain in more detail what is happening. For example, show us an XML file, then describe which keys you press at which location, and then show us the result you get and the result you want to get instead. -- Two cafe au lait please, but without milk.