Skip to content

Commit dbe43d8

Browse files
committed
fix(parinfer-rust): temporary disable for multiple-cursors
1 parent a765730 commit dbe43d8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/me-emacs-lisp.el

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@
5151
(parinfer-rust-mode -1)
5252
(+info! "Disabled `parinfer-rust-mode'")))
5353

54-
;; Fix the issue of `vundo' (related to `track-changes') when exploring the undo tree
54+
;; HACK: When we insert a space at the end on an s-expression in
55+
;; `multiple-cursors', it gets added only at the real cursor.
56+
;; `parinfer-rust-mode' prevents the others from being added. Lets fix this by
57+
;; disabling `parinfer-rust-mode' when working with `multiple-cursors'
58+
(with-eval-after-load 'multiple-cursors
59+
(add-hook 'multiple-cursors-mode-enabled-hook #'+parinfer-rust--disable)
60+
(add-hook 'multiple-cursors-mode-disabled-hook #'+parinfer-rust--restore))
61+
62+
;; HACK: Fix the issue of `vundo' (related to `track-changes') when exploring
63+
;; the undo tree
5564
(with-eval-after-load 'vundo
5665
(add-hook 'vundo-pre-enter-hook #'+parinfer-rust--disable)
5766
(add-hook 'vundo-post-exit-hook #'+parinfer-rust--restore)))

0 commit comments

Comments
 (0)