Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!phil From: phil@tut.cis.ohio-state.edu (Phil Ritzenthaler) Newsgroups: comp.emacs Subject: Help with hooks, sun.el, and .emacs Keywords: hooks sun.el Message-ID: <25180@tut.cis.ohio-state.edu> Date: 20 Oct 88 04:04:54 GMT Organization: Advanced Computing Center for the Arts and Design Lines: 23 Could someone with a better grasp of emacs-lisp please help me. I want to re-bind the function keys on our suns when using either emacs or emacstool, but I've run into a snag . . . The local .emacs file is loaded BEFORE the sun.el file. In the sun.el file, there are already key bindings. Because of this, any local bindings placed in the .emacs file are overwritten by those in the sun.el file. Simplest solution, probably, is to put my new key bindings in the sun.el file. But, the author of that file had a more elegant solution by using 'hooks'. Now, comes my problem, just how do I use the dang blasted hooks???? I printed out close to 400 pages of the emacs-lisp manual, but hooks aren't exactly explained in great detail, spartan at best. In other words, just what do I need to place in the file that contains the key rebindings so that they'll be loaded after sun.el does it's thing?? Any clue, source, spelling it out so a 2 month old monkey could even understand would be greatly appreciated. Thanks