help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp newbie trying a derived mode (clarifying intent)


From: Mathias Dahl
Subject: Re: Elisp newbie trying a derived mode (clarifying intent)
Date: Tue, 03 Oct 2006 09:46:24 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

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 :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]