Path: utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HUB.UCSB.EDU!zeger%merlin From: zeger%merlin@HUB.UCSB.EDU (Zeger) Newsgroups: gnu.emacs Subject: dired-mode Message-ID: <8902162049.AA06426@hub.ucsb.edu> Date: 16 Feb 89 20:48:43 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17 I would like to define some keys to be my own functions in dired-mode. I tried putting in my .emacs the following line: (define-key dired-mode-map "l" 'dired-my-function) This results in an error since dired is autoloaded the first time it is called and hence dired-mode-map is unknown at the time .emacs is loaded. I fixed this by also putting in my .emacs the line: (load "dired" nil t) But this means I have to load dired every time I load .emacs. Is there some better way yo accomplish what I want? Maybe a dired-mode-hook would be a good idea? Ken Zeger (zeger@hub.ucsb.edu)