TTY emacs doesn't stay in hercules?
I just found hercules the other day. Love it so far, but I'm running into some trouble defining a hercules that works the way I expect when in TTY emacs. I press my prefix, and see the hercules/which-key menu, but then the next key I press (which is defined in the keymap), leaves the hercules. The same hercules works fine in X11 emacs. Am I configuring something wrong?
(define-prefix-command 'eaw-multiple-cursors-map)
(set-keymap-parent eaw-multiple-cursors-map mc/keymap)
(if (display-graphic-p)
(progn
(define-key eaw-multiple-cursors-map (kbd "C->") 'mc/mark-next-like-this)
(define-key eaw-multiple-cursors-map (kbd "C-<") 'mc/mark-previous-like-this))
;; Terminals can't handle the C-S- modifier needed for C->.
(define-key eaw-multiple-cursors-map (kbd "l") 'mc/mark-next-like-this)
(define-key eaw-multiple-cursors-map (kbd "h") 'mc/mark-previous-like-this))
(define-key eaw-multiple-cursors-map (kbd "C-#") 'mc/insert-numbers)
(define-key eaw-multiple-cursors-map (kbd "C-g") 'eaw-mc-soft-quit)
(define-key eaw-multiple-cursors-map (kbd "C-d") 'mc/mark-all-like-this-dwim)
(define-key eaw-multiple-cursors-map (kbd "S-<mouse-1>") 'mc/add-cursor-on-click)
(defun eaw-mc-soft-quit ()
(interactive)
;; I'm a no op
(message "Bye!"))
(defun eaw-mc-mplt (arg)
(interactive "p")
(mc/mark-previous-like-this arg))
(defun eaw-mc-mnlt (arg)
(interactive "p")
(mc/mark-next-like-this arg))
(define-key mode-specific-map "c" eaw-multiple-cursors-map)
(hercules-def
:show-funs '(eaw-mc-mnlt eaw-mc-mplt eaw-multiple-cursors-map)
:hide-funs #'eaw-mc-soft-quit
:keymap 'eaw-multiple-cursors-map
:transient t)
Edited by Eric Wollesen