856 |
"Major mode for viewing/editing context diffs. |
"Major mode for viewing/editing context diffs. |
857 |
Supports unified and context diffs as well as (to a lesser extent) |
Supports unified and context diffs as well as (to a lesser extent) |
858 |
normal diffs. |
normal diffs. |
859 |
When the buffer is read-only, the ESC prefix is not necessary." |
When the buffer is read-only, the ESC prefix is not necessary. |
860 |
|
IF you edit the buffer manually, diff-mode will try to update the hunk |
861 |
|
headers for you on-the-fly. |
862 |
|
|
863 |
|
You can also switch between context diff and unified diff with \\[diff-context->unified], |
864 |
|
or vice versa with \\[diff-unified->context] and you can also revert the direction of |
865 |
|
a diff with \\[diff-reverse-direction]." |
866 |
(set (make-local-variable 'font-lock-defaults) diff-font-lock-defaults) |
(set (make-local-variable 'font-lock-defaults) diff-font-lock-defaults) |
867 |
(set (make-local-variable 'outline-regexp) diff-outline-regexp) |
(set (make-local-variable 'outline-regexp) diff-outline-regexp) |
868 |
(set (make-local-variable 'imenu-generic-expression) |
(set (make-local-variable 'imenu-generic-expression) |