Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!topaz.rutgers.edu!gaynor From: gaynor@topaz.rutgers.edu.UUCP Newsgroups: comp.emacs Subject: Re: lisp-indent-hook question, and other hooks (GNU Emacs) Message-ID: <15164@topaz.rutgers.edu> Date: Tue, 29-Sep-87 20:39:40 EDT Article-I.D.: topaz.15164 Posted: Tue Sep 29 20:39:40 1987 Date-Received: Fri, 2-Oct-87 01:19:52 EDT References: <2884@lifia.UUCP> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 27 In-reply-to: phs@lifia.UUCP's message of 28 Sep 87 15:24:42 GMT Posting-Front-End: GNU Emacs 18.47.22 of Tue Aug 25 1987 on topaz.rutgers.edu (berkeley-unix) Emacs-Hype: Posting-Front-End > 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 ? I could swear I gave this topic a fair discussion not two weeks ago. Check out archives for a slightly more complete discussion. But because I think this is a flaw (albeit minor) in GNU Emacs, here is the fundamental-mode-hook stuff again. ;; Define fundamental-mode to evaluate a hook, fundamental-mode-hook. (fset 'fundamental-mode (append (symbol-function 'fundamental-mode) '((run-hooks 'fundamental-mode-hook)))) (defvar fundamental-mode-hook nil "Function post-evaluated when fundamental-mode is entered. Hi Mom!" Enjoy, Look!! Silver. | \|/ V *********************************************************************** * LOOKING FOR ENTRY-LEVELISH C/LISP PROGRAMMING, SOFTWARE ENGINEERING * *********************************************************************** Andy Gaynor 201-545-0458 81 Hassart St, New Brunswick, NJ 08901 gaynor@topaz.rutgers.edu ...!rutgers!topaz.rutgers.edu!gaynor "There is no Editor but Emacs, and Lisp is its Prophet."