Function: this-major-mode-requires-vi-state
this-major-mode-requires-vi-state is a byte-compiled function defined
in viper.el.gz.
Signature
(this-major-mode-requires-vi-state MODE)
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper.el.gz
;; Apply a little heuristic to invoke vi state on major-modes
;; that are not listed in viper-vi-state-mode-list
(defun this-major-mode-requires-vi-state (mode)
(let ((major-mode mode))
(cond ((apply #'derived-mode-p viper-vi-state-mode-list) t)
((apply #'derived-mode-p viper-emacs-state-mode-list) nil)
((apply #'derived-mode-p viper-insert-state-mode-list) nil)
(t (and (eq (key-binding "a") 'self-insert-command)
(eq (key-binding " ") 'self-insert-command))))))