Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!inria!imag!lifia!phs From: phs@lifia.UUCP (Philippe Schnoebelen) Newsgroups: comp.emacs Subject: lisp-indent-hook question, and other hooks (GNU Emacs) Message-ID: <2884@lifia.UUCP> Date: Mon, 28-Sep-87 11:24:42 EDT Article-I.D.: lifia.2884 Posted: Mon Sep 28 11:24:42 1987 Date-Received: Wed, 30-Sep-87 04:16:41 EDT Reply-To: phs@lifia.UUCP (Philippe Schnoebelen) Distribution: world Organization: Lab. LIFIA -- Univ. Grenoble Lines: 52 Customizing the indentation behavior of a given Lisp symbol is very easy with GNU Emacs: one just has to change the lisp-indent-hook property of the symbol. Well, this is easy in some cases, depending on what you are trying to achieve. My problem is with Common Lisp's "flet" (or labels or macrolet). What Emacs gives is something like that: (flet ((function1 (x y z) (body1) (...)) (function2 () (Fig. 1) (body2) (...))) (flet-body) (...)) while I would prefer (flet ((function1 (x y z) (body1) (...)) (Fig. 2) (function2 () (body2) (...))) (flet-body) (...)) This does not fall into any of the three main styles of Lisp indentation for which it is easy to customize GNU Emacs, and thus it becomes very complicated to obtain it. Of course, it is possible to obtain it (it is always possible: you have the source :-), simply it is not at all easy, so much that I've never really tried to do it ... Have you written such a lisp-indent-fletform ? In such a case, would you accept to share it ? I think it would be useful for every Lisp programmer working with GNU Emacs because I cannot imagine someone accepting (Fig. 1) in his programs ! I even think this should be included into GNU Emacs, because automatically indenting Lisp programs has always been done by emacses. Thanks in advance. Still about hooks, I was disappointed to see that there is no (I mean, not yet any) fundamental-mode-hook ! How can I automatically edit any new file in ABBREV-MODE ? -- Philippe SCHNOEBELEN, Best: phs@lifia.imag.fr LIFIA - INPG, 46, Avenue Felix VIALLET 2nd: phs@lifia.UUCP 38000 Grenoble, FRANCE last: ..!mcvax!inria!lifia!phs "Algebraic symbols are used when you do not know what you are talking about."