Ramkumar Ramachandra <[email protected]> writes: > Allow adding custom hooks to magit-log-edit-mode. ... > (define-derived-mode magit-log-edit-mode text-mode "Magit Log Edit" > (set (make-local-variable 'fill-paragraph-function) > - 'magit-log-fill-paragraph)) > + 'magit-log-fill-paragraph) > + (run-mode-hooks 'magit-log-edit-mode-hook))
define-derived-mode already defines a hook and runs hook functions. -- Hannu To unsubscribe from this group, send email to magit+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
