Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!ames!ucbcad!ucbvax!LF-SERVER-2.BBN.COM!jr From: jr@LF-SERVER-2.BBN.COM (John Robinson) Newsgroups: comp.emacs Subject: Re: Modifying local Keymaps and other things (Long, sorry) Message-ID: <8708171539.AA03293@ucbvax.Berkeley.EDU> Date: Mon, 17-Aug-87 11:40:03 EDT Article-I.D.: ucbvax.8708171539.AA03293 Posted: Mon Aug 17 11:40:03 1987 Date-Received: Tue, 18-Aug-87 04:33:04 EDT References: <1316@bloom-beacon.MIT.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: jr@ALEXANDER.BBN.COM Distribution: world Organization: The ARPA Internet Lines: 29 Problems 1 and 2 (tailor major modes) are apt to be handled through mode hooks. For example, upon entering text mode, the function text-mode-hook, if it exists and is a defun, is called. This could rebind keys per the user's wishes. This would solve your problems both for dired and Help buffers. Help buffers come up in the default major mode; it should call the *-hook function, which could check for a buffer name of the *Help* form (or whatever) and go into view mode. Another option is to set you default-major-mode to view mode, but I doubt this will do the right thing for you. Since dired-mode and fundamental-mode probably don't call hooks, they should be redefined to do this a la the style of, say, text mode. Then you could do your local tailoring inside the hook functions. Problem 3 can be easily coped with by adding to your .emacs: (defun my-dired () (dired ".")) and then aliasing dired to emacs -e my-dired This will start you in a dired of the current WD. /jr jr@bbn.com or jr@bbnccv.uucp Without life, there wouldn't be chemical companies.