Pass cider-debug keys through normal-state

- Fixes #2356
- Fix found from:
https://github.com/wasamasa/dotemacs/blob/master/init.org#keymap-hacking
This commit is contained in:
luxbock 2015-08-18 19:39:25 +07:00 committed by syl20bnr
parent 636fe8fff0
commit 4a0abb18cc

View file

@ -145,6 +145,13 @@ the focus."
(message "Cider REPL clojure-mode font-lock: %s"
(if cider-repl-use-clojure-font-lock "ON" "OFF")))
(defun spacemacs/cider-debug-setup ()
(when (eq dotspacemacs-editing-style 'vim)
(evil-make-overriding-map cider--debug-mode-map 'normal)
(evil-normalize-keymaps)))
(add-hook 'cider--debug-mode-hook 'spacemacs/cider-debug-setup)
(evilify cider-stacktrace-mode cider-stacktrace-mode-map
(kbd "C-j") 'cider-stacktrace-next-cause
(kbd "C-k") 'cider-stacktrace-previous-cause