aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/init.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index d4ac902..2998dc2 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -141,7 +141,13 @@
(global-undo-tree-mode)
(evil-leader/set-key "hu" 'undo-tree-undo)
(evil-leader/set-key "hr" 'undo-tree-redo)
- (evil-leader/set-key "hv" 'undo-tree-visualize))
+ (evil-leader/set-key "hv" 'undo-tree-visualize)
+ (defun undo-tree-suppress-buffer-modified-message
+ (undo-tree-load-history &rest args)
+ (let ((inhibit-message t))
+ (apply undo-tree-load-history args)))
+ (advice-add #'undo-tree-load-history :around
+ #'undo-tree-suppress-buffer-modified-message))
(use-package minions
:ensure t