aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2022-10-31 14:17:27 +0100
committerAdrian Kummerlaender2022-10-31 14:18:56 +0100
commit4a440db0396465596355295fff8fd2607501cdf3 (patch)
tree5e3964548bada738fc24d13a4426b29890c8e0f3 /gui/conf
parent4a4853bba7775927507c6f0b276986e55f772bcf (diff)
downloadnixos_home-4a440db0396465596355295fff8fd2607501cdf3.tar
nixos_home-4a440db0396465596355295fff8fd2607501cdf3.tar.gz
nixos_home-4a440db0396465596355295fff8fd2607501cdf3.tar.bz2
nixos_home-4a440db0396465596355295fff8fd2607501cdf3.tar.lz
nixos_home-4a440db0396465596355295fff8fd2607501cdf3.tar.xz
nixos_home-4a440db0396465596355295fff8fd2607501cdf3.tar.zst
nixos_home-4a440db0396465596355295fff8fd2607501cdf3.zip
Suppress undo tree message
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