diff --git a/rigpa.el b/rigpa.el index 2348f0d..e21314c 100644 --- a/rigpa.el +++ b/rigpa.el @@ -254,8 +254,9 @@ and simply toggles whether the menu is visible or not." (let ((keymap (symbol-value (intern (concat "evil-" state "-state-map"))))) - (define-key keymap [escape] #'rigpa-enter-higher-level) - (unless (member state chimera-insertion-states) + (if (member state chimera-insertion-states) + (define-key keymap [escape] #'rigpa-enter-higher-level) + (define-key keymap [escape] #'rigpa-rotate-mode-ring-left) (define-key keymap [return] #'rigpa--enter-lower-or-pass-through)))) ;; exit visual state gracefully (define-key evil-visual-state-map [escape] (lambda ()