summaryrefslogtreecommitdiff
path: root/lisp/emulation/viper-init.el
diff options
context:
space:
mode:
authorMichael Kifer <kifer@cs.stonybrook.edu>2008-11-22 06:29:09 +0000
committerMichael Kifer <kifer@cs.stonybrook.edu>2008-11-22 06:29:09 +0000
commit8c3ad6c48381141db6f561ce80abd8082d2c1e1e (patch)
treeab219eead3daee67e5bc2e6ee6476838682bf3bb /lisp/emulation/viper-init.el
parent33f95a82e97cac000a98dc5b1100ad7a095e12d3 (diff)
downloademacs-8c3ad6c48381141db6f561ce80abd8082d2c1e1e.tar.gz
2008-11-22 Michael Kifer <kifer@cs.stonybrook.edu>
* viper.el: date change. * viper-cmd.el (viper-envelop-ESC-key): viper-translate-all-ESC-keysequences is now a function. * viper-init (viper-translate-all-ESC-keysequences): make this variable
Diffstat (limited to 'lisp/emulation/viper-init.el')
-rw-r--r--lisp/emulation/viper-init.el16
1 files changed, 4 insertions, 12 deletions
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 9894ec8beda..856f8e7a33f 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -525,18 +525,10 @@ will make it hard to use Vi-style timeout macros."
: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 ESC 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)
+;; This function determines if ESC key sequences are to be translated into
+;; commands.
+(defun viper-translate-all-ESC-keysequences ()
+ (not (viper-window-display-p)))
;; Modes and related variables