| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The bulk of customization can be done via the following hooks:
ediff-load-hook
ediff-keymap-setup-hook
ediff-load-hook. The regular user needs not be concerned with this
hook--it is provided for implementors of other Emacs packages built on top
of Ediff.
ediff-before-setup-windows-hook
ediff-after-setup-windows-hook
ediff-suspend-hook
ediff-quit-hook
By default, ediff-quit-hook holds one hook function,
ediff-cleanup-mess, which cleans after Ediff, as appropriate in
most cases. You probably won't want to change it, but you might
want to add other hook functions.
Keep in mind that hooks executing before ediff-cleanup-mess start
in ediff-control-buffer; they should also leave
ediff-control-buffer as the current buffer when they finish.
Hooks that are executed after ediff-cleanup-mess should expect
the current buffer be either buffer A or buffer B.
ediff-cleanup-mess doesn't kill the buffers being compared or
merged (see ediff-cleanup-hook, below).
ediff-cleanup-hook
ediff-quit-hook. This is a good
place to do various cleanups, such as deleting the variant buffers.
Ediff provides a function, ediff-janitor, as one such possible
hook, which you can add to ediff-cleanup-hook with
add-hooks.
This function kills buffers A, B, and, possibly, C, if these buffers aren't modified. In merge jobs, buffer C is never deleted. However, the side effect of using this function is that you may not be able to compare the same buffer in two separate Ediff sessions: quitting one of them will delete this buffer in another session as well.
ediff-before-setup-control-frame-hook
ediff-after-setup-control-frame-hook
ediff-control-buffer), which requires
special care in writing these hooks. Take a look at
ediff-default-suspend-hook and ediff-default-quit-hook to
see what's involved.
ediff-startup-hook
ediff-select-hook
ediff-unselect-hook
ediff-prepare-buffer-hook
ediff-display-help-hook
ediff-mode-hook
ediff-registry-setup-hook
ediff-session-group-setup-hook
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |