From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?iso-8859-1?q?Bockg=E5rd?=) Newsgroups: gmane.emacs.help Subject: Re: 'smart' indentation Date: Mon, 10 Mar 2003 01:26:53 +0100 Organization: Chalmers University of Technology, Sweden Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <87llzonnqs.fsf@cecilia.trollope.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1047256289 28379 80.91.224.249 (10 Mar 2003 00:31:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 00:31:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 01:31:28 2003 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 18sBCS-0007Nb-00 for ; Mon, 10 Mar 2003 01:31:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sBCK-0003Ps-05 for gnu-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2003 19:31:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!uio.no!news.netg.se!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: helm.dd.chalmers.se User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 Cancel-Lock: sha1:e8zKo1UNdu9yRZIA774B1PTfYA4= Original-Xref: shelby.stanford.edu gnu.emacs.help:110940 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7441 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7441 Michael Powe writes: > hello, > > i would like to have 'smart' indentation, à la some editors i use like > textpad. if i indent a line, then when i press enter at the end of > the line, i want point to go to the indented position on the following > line. i can't find the way to make this work. it looks like > 'adaptive-fill-mode' should do this, but it does not. having to go > back and 'indent-region' is annoying. There is a function `newline-and-indent'. You want to bind this to RET, I think (and you would probably find it is on C-j already). /Johan