From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Auto-Indent Date: 30 Nov 2003 08:08:10 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <%kLxb.35845$mU6.122676@newsb.telia.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1070172479 29459 80.91.224.253 (30 Nov 2003 06:07:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2003 06:07:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 30 07:07:56 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 1AQKkO-0004gy-00 for ; Sun, 30 Nov 2003 07:07:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AQLgo-0003x1-IN for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Nov 2003 02:08:18 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AQLgc-0003uc-IT for help-gnu-emacs@gnu.org; Sun, 30 Nov 2003 02:08:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AQLg6-0003fL-Qf for help-gnu-emacs@gnu.org; Sun, 30 Nov 2003 02:08:05 -0500 Original-Received: from [207.232.27.5] (helo=WST0054) by monty-python.gnu.org with asmtp (Exim 4.24) id 1AQLg5-0003dE-QC for help-gnu-emacs@gnu.org; Sun, 30 Nov 2003 02:07:34 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <%kLxb.35845$mU6.122676@newsb.telia.net> (message from digits on Fri, 28 Nov 2003 17:11:23 GMT) 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:14730 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14730 > From: digits > Newsgroups: gnu.emacs.help > Date: Fri, 28 Nov 2003 17:11:23 GMT > > I can't find any information on how to solve this (simple) matter. You should be able to find it in the node "Basic Indent" of the Emacs manual. Care to tell how you tried to look for it and come you didn't find it? > That Emacs keep the amount of tab's at the beginning of the line when I > press enter, no matter which mode I am in. Emacs already does that in most modes, but the command to do it is by default bound to C-j, for which many keyboards lack a key (if you have a keyboard with a key labeled "LFD", try using it instead of the Return key). You could either type Ctrl-j to get what you want, or you could bind this function to the Return key, by putting this: (global-set-key "\C-m" 'newline-and-indent) into your ~/.emacs init file. > Is there a way for this, or should I start looking into other editors - > because this is a must have for me. Threats? Not very nice, IMHO.