Customization Customization Quick Help Customization
The bulk of customization can be done via the following hooks:
ediff-load-hook
|
This hook can be used to change defaults after Ediff is loaded. |
ediff-keymap-setup-hook
|
This hook can be used to alter bindings in Ediff's keymap,
|
ediff-before-setup-windows-hook
ediff-after-setup-windows-hook
|
These two hooks are called before and after Ediff sets up its window configuration. Can be used to save the configuration that existed before Ediff starts or for whatever other purposes. |
ediff-suspend-hook
ediff-quit-hook
|
These two hooks are run when you suspend or quit Ediff. They can be used to set desired window configurations, delete files Ediff didn't want to clean up after exiting, etc.
By default,
Keep in mind that hooks executing before |
ediff-cleanup-hook
|
This hook is run just before 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-quit-merge-hook
|
This hook is called when Ediff quits a merge job. By default, the value is
|
ediff-before-setup-control-frame-hook
ediff-after-setup-control-frame-hook
|
These two hooks run before and after Ediff sets up the control frame.
They can be used to relocate Ediff control frame when Ediff runs in a
multiframe mode (i.e., when the control buffer is in its own dedicated
frame). Be aware that many variables that drive Ediff are local to
Ediff Control Panel ( |
ediff-startup-hook
|
This hook is run at the end of Ediff startup. |
ediff-select-hook
|
This hook is run after Ediff selects the next difference region. |
ediff-unselect-hook
|
This hook is run after Ediff unselects the current difference region. |
ediff-prepare-buffer-hook
|
This hook is run for each Ediff buffer (A, B, C) right after the buffer is arranged. |
ediff-display-help-hook
|
Ediff runs this hook each time after setting up the help message. It can be used to alter the help message for custom packages that run on top of Ediff. |
ediff-mode-hook
|
This hook is run just after Ediff mode is set up in the control buffer. This is done before any Ediff window is created. You can use it to set local variables that alter the look of the display. |
ediff-registry-setup-hook
|
Hooks run after setting up the registry for all active Ediff session. See Session Groups, for details. |
ediff-session-group-setup-hook
|
Hooks run after setting up a control panel for a group of related Ediff sessions. See Session Groups, for details. |
ediff-quit-session-group-hook
|
Hooks run just before exiting a session group. |
ediff-meta-buffer-keymap-setup-hook
|
Hooks run just after setting up the ediff-meta-buffer-map --- the
map that controls key bindings in the meta buffer. Since
ediff-meta-buffer-map is a local variable, you can set different
bindings for different kinds of meta buffers.
|