unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mathias Dahl <brakjoller@gmail.com>
Subject: Re: Elisp newbie trying a derived mode (clarifying intent)
Date: Tue, 03 Oct 2006 09:46:24 +0200	[thread overview]
Message-ID: <uodsthmen.fsf@gmail.com> (raw)
In-Reply-To: mailman.7597.1159548604.9609.help-gnu-emacs@gnu.org

Kevin Rodgers <ihs_4664@yahoo.com> 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 :)

      parent reply	other threads:[~2006-10-03  7:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-28 19:02 Elisp newbie trying a derived mode davex
2006-09-28 20:35 ` Kevin Rodgers
     [not found] ` <mailman.7564.1159475819.9609.help-gnu-emacs@gnu.org>
2006-09-29  1:49   ` Elisp newbie trying a derived mode (clarifying intent) davex
2006-09-29  9:06     ` Mathias Dahl
2006-09-29 16:48       ` Kevin Rodgers
     [not found]       ` <mailman.7597.1159548604.9609.help-gnu-emacs@gnu.org>
2006-10-03  7:46         ` Mathias Dahl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uodsthmen.fsf@gmail.com \
    --to=brakjoller@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).