From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Michael P. Soulier" Newsgroups: gmane.emacs.help Subject: Re: auto-indent Date: 18 Nov 2002 17:44:52 GMT Organization: Storm Internet Services Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: Reply-To: msoulier@storm.ca._nospam NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1037642197 16605 80.91.224.249 (18 Nov 2002 17:56:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 18 Nov 2002 17:56:37 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Dq8R-0004Jf-00 for ; Mon, 18 Nov 2002 18:56:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Dq8d-0001CT-00; Mon, 18 Nov 2002 12:56:47 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!east1.newsfeed.sprint-canada.net!news.storm.ca!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: ppp-209-87-255-21.storm.ca Original-X-Trace: news.storm.ca 1037641492 4314 209.87.255.21 (18 Nov 2002 17:44:52 GMT) Original-X-Complaints-To: abuse@storm.ca Original-NNTP-Posting-Date: 18 Nov 2002 17:44:52 GMT User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:107157 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3708 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3708 On 16 Nov 2002 02:51:37 GMT, Michael P. Soulier wrote: > Hey people. How would I modify auto-fill mode so that it works the same > way as auto-indent in Vi? All I want it to do is, when it wraps the line, > indent to the same position as the previous line. Ok, I'm trying to do this by rebinding the return key. This is for sgml-mode, where I'm doing it like so: (defun my-sgml-mode-hook () "My personal sgml mode customizations." (setq sgml-indent-step nil) (setq sgml-indent-data nil) (define-key sgml-mode-map [RET] '(lambda () (newline) (indent-relative))) ) This apparently shows up in the sgml-mode-map, but when I go into an xml file in sgml-mode (with help from xxml-mode), and do a C-h k RET, it says that the key is still bound to newline. How can that be? Why isn't this working? Thanks, Mike -- Michael P. Soulier , GnuPG pub key: 5BC8BE08 "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix HTML Email Considered Harmful: http://expita.com/nomime.html