aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/viper.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index 754eff3906d..ad366135ff1 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -458,6 +458,7 @@ unless it is coming up in a wrong Viper state."
458 '(internal-ange-ftp-mode 458 '(internal-ange-ftp-mode
459 comint-mode 459 comint-mode
460 inferior-emacs-lisp-mode 460 inferior-emacs-lisp-mode
461 erc-mode
461 eshell-mode 462 eshell-mode
462 shell-mode) 463 shell-mode)
463 "*A list of major modes that should come up in Vi Insert state." 464 "*A list of major modes that should come up in Vi Insert state."
@@ -494,6 +495,8 @@ unless it is coming up in a wrong Viper state."
494 (gnus-summary-mode emacs-state viper-gnus-modifier-map) 495 (gnus-summary-mode emacs-state viper-gnus-modifier-map)
495 (Info-mode emacs-state viper-slash-and-colon-map) 496 (Info-mode emacs-state viper-slash-and-colon-map)
496 (Buffer-menu-mode emacs-state viper-slash-and-colon-map) 497 (Buffer-menu-mode emacs-state viper-slash-and-colon-map)
498 (erc-mode insert-state viper-comint-mode-modifier-map)
499 (erc-mode vi-state viper-comint-mode-modifier-map)
497 ) 500 )
498 "List specifying how to modify the various major modes to enable some Viperisms. 501 "List specifying how to modify the various major modes to enable some Viperisms.
499The list has the structure: ((mode viper-state keymap) (mode viper-state 502The list has the structure: ((mode viper-state keymap) (mode viper-state
@@ -768,6 +771,7 @@ It also can't undo some Viper settings."
768 ;; remove all hooks set by viper 771 ;; remove all hooks set by viper
769 (mapatoms 'viper-remove-hooks) 772 (mapatoms 'viper-remove-hooks)
770 (remove-hook 'comint-mode-hook 'viper-comint-mode-hook) 773 (remove-hook 'comint-mode-hook 'viper-comint-mode-hook)
774 (remove-hook 'erc-mode-hook 'viper-comint-mode-hook)
771 (remove-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel) 775 (remove-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel)
772 (remove-hook 'change-major-mode-hook 'viper-major-mode-change-sentinel) 776 (remove-hook 'change-major-mode-hook 'viper-major-mode-change-sentinel)
773 (remove-hook 'post-command-hook 'viper-minibuffer-post-command-hook) 777 (remove-hook 'post-command-hook 'viper-minibuffer-post-command-hook)
@@ -913,6 +917,7 @@ It also can't undo some Viper settings."
913 917
914 ;; Emacs shell, ange-ftp, and comint-based modes 918 ;; Emacs shell, ange-ftp, and comint-based modes
915 (add-hook 'comint-mode-hook 'viper-comint-mode-hook) ; comint 919 (add-hook 'comint-mode-hook 'viper-comint-mode-hook) ; comint
920 (add-hook 'erc-mode-hook 'viper-comint-mode-hook) ; ERC
916 921
917 (add-hook 'eshell-mode-hook 922 (add-hook 'eshell-mode-hook
918 (lambda () (setq viper-auto-indent nil))) 923 (lambda () (setq viper-auto-indent nil)))