Skip to content

Commit

Permalink
exit mode in meta levels prior to returning to ground
Browse files Browse the repository at this point in the history
Formerly I think with hydra we were implicitly exiting. With lithium,
global modes like Buffer remain active even when the original buffer
is killed, so we need to explicitly exit at the appropriate time.
  • Loading branch information
countvajhula committed Sep 19, 2024
1 parent aed4bd2 commit efe4ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rigpa-mode-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ current editing tower."
(let ((ref-buf (rigpa--get-ground-buffer)))
(rigpa--revert-ui)
(rigpa--remove-meta-side-effects)
(chimera--exit-mode (rigpa-current-mode))
(when (eq (with-current-buffer ref-buf
(rigpa--get-ground-buffer))
ref-buf)
Expand Down
1 change: 1 addition & 0 deletions rigpa-tower-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ initial editing tower."
(setq rigpa--last-tower-index rigpa--tower-index-on-entry))
(rigpa--revert-ui)
(rigpa--remove-meta-tower-side-effects)
(chimera--exit-mode (rigpa-current-mode))
(kill-matching-buffers (concat "^" rigpa-buffer-prefix) nil t)
(switch-to-buffer ref-buf)))

Expand Down

0 comments on commit efe4ca3

Please sign in to comment.