Disable undo in all magit-mode buffers.

Saves lots of memory and prevents triggering a scary warning when Emacs detects
the massive amount of undo usage.
This commit is contained in:
René Stadler 2009-01-08 00:21:38 +02:00
parent b30faeb310
commit b7fe74520d

View file

@ -997,6 +997,7 @@ Please see the manual for a complete description of Magit.
\\{magit-mode-map}"
(kill-all-local-variables)
(buffer-disable-undo)
(setq buffer-read-only t)
(setq major-mode 'magit-mode
mode-name "Magit"