I am working on Spacemacs which gives you the ability toggle between Emacs "holy-mode" and Vim "evil-mode". However the evil-escape
minor mode is still enabled. I am trying to find some way to disable evil-escape
in the holy-mode
setup function and then restore its previous state (enabled/disabled) in holy-mode
's teardown function. I tried this but it didn't work.
;; setup
(setq evil-escape-mode-set (symbol-value 'evil-escape-mode))
(evil-escape-mode -1)
;; teardown
(when (evil-escape-mode-set)
(evil-escape-mode))
but the teardown doesn't seem to work. How can I accomplish this?
symbol-value
or even define a variable. Every properly defined mode defined a variable with the same name you can use for this.evil-escape-mode
in order to restore it correct?nil
ort
by the mode.