From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: auto-indent in emacs Date: Mon, 30 Nov 2009 16:58:35 +0100 Message-ID: References: <6bd43112-0ffd-482a-be72-0cbb579ed1b8@o13g2000vbl.googlegroups.com> <87tywc9gpi.fsf@ergodik.univ-brest.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1259597304 24834 80.91.229.12 (30 Nov 2009 16:08:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2009 16:08:24 +0000 (UTC) Cc: emacs help , Emacs-Devel devel To: harven Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 30 17:08:16 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NF8nI-00021B-Sm for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2009 17:08:09 +0100 Original-Received: from localhost ([127.0.0.1]:46649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF8nF-0006Tc-4c for ged-emacs-devel@m.gmane.org; Mon, 30 Nov 2009 11:08:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NF8eY-0004f4-HR for emacs-devel@gnu.org; Mon, 30 Nov 2009 10:59:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NF8eT-0004dl-8R for emacs-devel@gnu.org; Mon, 30 Nov 2009 10:59:05 -0500 Original-Received: from [199.232.76.173] (port=58318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF8eS-0004dh-Sz; Mon, 30 Nov 2009 10:59:00 -0500 Original-Received: from mail-gx0-f224.google.com ([209.85.217.224]:62170) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NF8eS-0001Zn-L2; Mon, 30 Nov 2009 10:59:00 -0500 Original-Received: by gxk24 with SMTP id 24so569245gxk.6 for ; Mon, 30 Nov 2009 07:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=TRlwYhyeOVBdQOyBevkzSev8ueyQAEptR8hIqn6dpIE=; b=D1WYoA2e0SJ7sIjzqQB4vfBgdgjWyLuZ7izO2CIiOmYWqC7Xw+l3AkV+thmh/KJ5jm ovLMV+qmzpUsV6nN2gR5eKJF8CeYlCdaQ1lu1lQDd49tYY7j1fuUjFy1z5xHppWrPmzX T1NnV5HWymZS1a7WWFkhJ+8j4dHb9QsysHutQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=hGJ8tobigFLLvmMfrOGezTNevCXdXXneFcnOum404RdxTaJmSdByUV1zmHq1tx//6j 5n+4FgEM2bbAgwaIHaOSJQZvGZFj5qpQBeBbQQg1VMv/6wlaYXFqsm8vc7D2TfY+mzhX iewtmDCgKt2UCdTVd3Bbn+iK/0JMCh+vfVo74= Original-Received: by 10.101.176.2 with SMTP id d2mr1540381anp.27.1259596736084; Mon, 30 Nov 2009 07:58:56 -0800 (PST) In-Reply-To: <87tywc9gpi.fsf@ergodik.univ-brest.fr> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:117971 gmane.emacs.help:70261 Archived-At: On Mon, Nov 30, 2009 at 4:26 PM, harven wrote: > Kenneth Brun Nielsen writes: > >> I want to auto-indent a section (actually a whole file) in Emacs. >> >> I googled, that the shortcut C-M-\ ("CTRL+ALT+backspace") does the >> job, but since I have a danish keyboard, where "backspace" requires me >> to push the META-button "Alt Gr", it seems I'm not able to push this >> combination. >> >> Any suggestions for another way to auto-indent? >> >> Best regards, >> Kenneth > > C-M-\ runs the command indent-region (check it by typing C-h k C-M-\). > So bind that command to another shortcut. For example, to bind it to C-c i > put the following line in your .emacs > > (global-set-key (kbd "C-c i") 'indent-region) Please see also the page http://www.emacswiki.org/emacs/AltGrKey for how to type C-M-\. Emacs Devel: Could we please get this information into the manual? I think it fits under (info "(emacs) Windows Keyboard") where AltGr is mentioned.