branch: externals/taxy
commit 906d38757660dcdd8b1d09d94ec8241cf709c8d4
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>
Fix: (taxy-magit-section-pp) Use magit-section-mode
---
taxy-magit-section.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/taxy-magit-section.el b/taxy-magit-section.el
index afad87c..932e917 100644
--- a/taxy-magit-section.el
+++ b/taxy-magit-section.el
@@ -43,8 +43,7 @@
(cl-defun taxy-magit-section-pp (taxy &key (objects 'first))
"Pretty-print TAXY into a buffer with `magit-section' and show it."
(with-current-buffer (get-buffer-create "*taxy-magit-section-pp*")
- (setf buffer-read-only t)
- (use-local-map magit-section-mode-map)
+ (magit-section-mode)
(let ((inhibit-read-only t))
(erase-buffer)
(taxy-magit-section-insert taxy :objects objects))