From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.help Subject: Re: Indentation. Date: Fri, 27 Oct 2006 18:46:27 +0200 Message-ID: <87ac3hiu58.fsf@gmx.at> References: <1161965861.676823.127500@i3g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161972287 4349 80.91.229.2 (27 Oct 2006 18:04:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2006 18:04:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 27 20:04:46 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdVhy-0001Mv-Ki for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2006 19:41:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdVhv-0002fK-Fk for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Oct 2006 13:41:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:j0YKX3BswBuwSkKoB1Kv9DzhLwY= Original-Lines: 17 Original-NNTP-Posting-Host: v223.demo.tuwien.ac.at Original-X-Trace: 1161967120 tunews.univie.ac.at 12642 128.131.204.223 Original-X-Complaints-To: abuse@tuwien.ac.at Original-Xref: shelby.stanford.edu gnu.emacs.help:142711 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38332 Archived-At: zombek@gmail.com writes: > 1) 4 space indentation (no mather which language) and it shouldn't care > about the syntax - when I say indent then indent Add this to the modes in which you want 4 spaces when you press TAB: (local-set-key "\t" (lambda () (interactive) (insert " "))) > 2)when I press RETURN when beeing on some indentation level i should > automatically go to the same indentation level in the new line without > the need to press TAB (global-set-key "\C-m" 'newline-and-indent) Best wishes! -- Markus Triska