From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Auto-indenting code Date: Sat, 07 Oct 2006 00:17:04 +0200 Organization: disorganized Message-ID: <878xjt5btr.fsf@localhorst.mine.nu> References: <1160170328.241481.38750@b28g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1160173439 32054 80.91.229.2 (6 Oct 2006 22:23:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Oct 2006 22:23:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 07 00:23:57 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 1GVy6k-0002Rn-VF for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Oct 2006 00:23:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVy6k-0006iQ-Eb for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Oct 2006 18:23:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GVy6W-0006f7-IS for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 18:23:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GVy6V-0006Zu-4z for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 18:23:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GVy6U-0006ZB-Rc for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 18:23:38 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GVyDS-0004R9-KR for help-gnu-emacs@gnu.org; Fri, 06 Oct 2006 18:30:50 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GVy6I-0002Ny-Dk for help-gnu-emacs@gnu.org; Sat, 07 Oct 2006 00:23:26 +0200 Original-Received: from e178013130.adsl.alicedsl.de ([85.178.13.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Oct 2006 00:23:26 +0200 Original-Received: from david.hansen by e178013130.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Oct 2006 00:23:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178013130.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:fYm4i1XTWLAVRxH8Mdub8ClbXoE= 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:37858 Archived-At: On 6 Oct 2006 14:32:08 -0700 Gruumail@gmail.com wrote: > I'm looking for a way to set up my .emacs so that emacs auto-indents my > scheme code. I can get it to go into scheme-mode when I load a .scm > file, but it doesn't auto-indent whenever I go to a newline. How would > I go about doing this? (add-hook 'scheme-mode-hook #'(lambda () (local-set-key "\C-m" 'reindent-then-newline-and-indent))) Also try pardit.el (search the wiki). > And also, where would I find a good, user-friendly guide to > elisp that would explain these things? (info "(eintr)Top") and (info "(elisp)Top") Hit C-x C-e after the closing paren. The emacswiki is a great resource for sample lisp code as well. David