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:
parent
b30faeb310
commit
b7fe74520d
1 changed files with 1 additions and 0 deletions
1
magit.el
1
magit.el
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue