diff lisp/emulation/viper-init.el @ 27899:42f9a58e0fc4

* viper-cmd.el (viper-envelop-ESC-key): added the option to translate all ESC key sequences. (viper-goto-mark-subr): restore markers for files for which they were saved. * viper-init.el (viper-translate-all-ESC-keysequences): new variable. * viper-util.el (viper-set-replace-overlay-glyphs, viper-set-replace-overlay): always check if the replacement overlay is live. * viper.el (viper-vi-state-mode-list): added major modes. * ediff-wind.el: minor comment changes. * ediff.el: copyright notice date fix.
author Michael Kifer <kifer@cs.stonybrook.edu>
date Mon, 28 Feb 2000 06:16:44 +0000
parents e20b16957cdd
children f6a67d77484a
line wrap: on
line diff
--- a/lisp/emulation/viper-init.el	Sun Feb 27 21:52:51 2000 +0000
+++ b/lisp/emulation/viper-init.el	Mon Feb 28 06:16:44 2000 +0000
@@ -505,6 +505,19 @@
   :type 'integer
   :group 'viper-misc)
 
+(defcustom viper-translate-all-ESC-keysequences (not (viper-window-display-p))
+  "Allow translation of all key sequences into commands.
+Normally, Viper lets Emacs translate only those ESC key sequences that are
+defined in the low-level key-translation-map or function-key-map, such as those
+emitted by the arrow and function keys. Other sequences, e.g., \\e/, are
+treated as ESQ command followed by a `/'. This is done for people who type fast
+and tend to hit other characters right after they hit ESC. Other people like
+Emacs to translate ESC sequences all the time. 
+The default is to translate all sequences only when using a dumb terminal.
+This permits you to use ESC as a meta key in insert mode."
+  :type 'boolean
+  :group 'viper-misc)
+
 ;; Modes and related variables
 
 ;; Current mode.  One of: `emacs-state', `vi-state', `insert-state'