From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: inferior-lisp mode indenting problem Date: Fri, 15 Aug 2003 01:33:22 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87d6f7yd2l.fsf@indigo.shootybangbang.com> References: <87he4jydmn.fsf@indigo.shootybangbang.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1060908454 13604 80.91.224.253 (15 Aug 2003 00:47:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2003 00:47:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 02:47:33 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 19nSke-0002QX-00 for ; Fri, 15 Aug 2003 02:47:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19nSkC-0001Lk-Vs for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2003 20:47:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!host217-44-221-169.range217-44.btcentralplus.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: host217-44-221-169.range217-44.btcentralplus.com (217.44.221.169) Original-X-Trace: news.uni-berlin.de 1060907631 826995 217.44.221.169 (16 [170119]) X-Orig-Path: indigo.shootybangbang.com!news X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp 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:11823 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11823 John Paul Wallington burbled: > To get proper indentation of Common Lisp code without clobbering > conventional Emacs Lisp indentation you could do something like so: > > (add-hook 'lisp-mode-hook > (lambda () > (set (make-local-variable lisp-indent-function) ^ Oh boy! should be quoted, like so: (add-hook 'lisp-mode-hook (lambda () (set (make-local-variable 'lisp-indent-function) 'common-lisp-indent-function))) I hadn't noticed before because the default value of `lisp-indent-function' is `lisp-indent-function' !