[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto-indenting code
From: |
David Hansen |
Subject: |
Re: Auto-indenting code |
Date: |
Sat, 07 Oct 2006 00:17:04 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
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