Skip to content

Commit e3152fb

Browse files
committed
tweak(parinfer-rust): display info messages on disable/enable
1 parent ed852e8 commit e3152fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

modules/me-emacs-lisp.el

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@
3939
(defun +parinfer-rust--restore (&rest _)
4040
(when +parinfer-rust--was-enabled-p
4141
(setq +parinfer-rust--was-enabled-p nil)
42-
(parinfer-rust-mode 1)))
42+
(parinfer-rust-mode 1)
43+
(+info! "Restored `parinfer-rust-mode'")))
4344

4445
(defun +parinfer-rust--disable (&rest _)
4546
(setq +parinfer-rust--was-enabled-p (bound-and-true-p parinfer-rust-mode))
4647
(when +parinfer-rust--was-enabled-p
47-
(parinfer-rust-mode -1)))
48+
(parinfer-rust-mode -1)
49+
(+info! "Disabled `parinfer-rust-mode'")))
4850

49-
;; Fix the issue of `vundo` (related to `track-changes`) when exploring the undo tree
51+
;; Fix the issue of `vundo' (related to `track-changes') when exploring the undo tree
5052
(with-eval-after-load 'vundo
5153
(add-hook 'vundo-pre-enter-hook #'+parinfer-rust--disable)
5254
(add-hook 'vundo-post-exit-hook #'+parinfer-rust--restore)))

0 commit comments

Comments
 (0)