From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Elisp newbie trying a derived mode (clarifying intent) Date: Tue, 03 Oct 2006 09:46:24 +0200 Message-ID: References: <1159470167.933570.91970@b28g2000cwb.googlegroups.com> <1159494566.323253.174670@m73g2000cwd.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1159865079 29675 80.91.229.2 (3 Oct 2006 08:44:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2006 08:44:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 03 10:44:34 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GUfqY-0000XZ-5r for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Oct 2006 10:41:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GUfqX-0003SI-JC for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Oct 2006 04:41:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!open-news-network.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-X-Trace: individual.net nyNfNciNBsoFwJACnsbaugHD79eusFcQ2BUTDaIL8HdpuLxUGx User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:xUcVvjrzCKTsf2zmfGVfY6WsrGs= Original-Xref: shelby.stanford.edu gnu.emacs.help:142154 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37773 Archived-At: Kevin Rodgers writes: >> I have this in my .emacs: >> ;; if dired's already loaded, then the keymap will be bound >> (if (boundp 'dired-mode-map) >> ;; we're good to go; just add our bindings >> (my-dired-init) >> ;; it's not loaded yet, so add our bindings to the load-hook >> (add-hook 'dired-load-hook 'my-dired-init)) > > Why not just unconditionally (add-hook 'dired-mode-hook 'my-dired-init)? Not sure, really. I wondered the same myself. A copy-paste thing probably :)