Mercurial > emacs
comparison lisp/emulation/viper-init.el @ 99789:125a6fd7c956
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
author | Michael Kifer <kifer@cs.stonybrook.edu> |
---|---|
date | Sat, 22 Nov 2008 06:29:09 +0000 |
parents | eb7532b56b78 |
children | a9dc0e7c3f2b |
comparison
equal
deleted
inserted
replaced
99788:2de5937e4473 | 99789:125a6fd7c956 |
---|---|
523 Setting this too high may slow down your typing. Setting this value too low | 523 Setting this too high may slow down your typing. Setting this value too low |
524 will make it hard to use Vi-style timeout macros." | 524 will make it hard to use Vi-style timeout macros." |
525 :type 'integer | 525 :type 'integer |
526 :group 'viper-misc) | 526 :group 'viper-misc) |
527 | 527 |
528 (defcustom viper-translate-all-ESC-keysequences (not (viper-window-display-p)) | 528 ;; This function determines if ESC key sequences are to be translated into |
529 "Allow translation of all key sequences into commands. | 529 ;; commands. |
530 Normally, Viper lets Emacs translate only those ESC key sequences that are | 530 (defun viper-translate-all-ESC-keysequences () |
531 defined in the low-level key-translation-map or function-key-map, such as those | 531 (not (viper-window-display-p))) |
532 emitted by the arrow and function keys. Other sequences, e.g., \\e/, are | |
533 treated as ESC command followed by a `/'. This is done for people who type fast | |
534 and tend to hit other characters right after they hit ESC. Other people like | |
535 Emacs to translate ESC sequences all the time. | |
536 The default is to translate all sequences only when using a dumb terminal. | |
537 This permits you to use ESC as a meta key in insert mode." | |
538 :type 'boolean | |
539 :group 'viper-misc) | |
540 | 532 |
541 ;; Modes and related variables | 533 ;; Modes and related variables |
542 | 534 |
543 ;; Current mode. One of: `emacs-state', `vi-state', `insert-state' | 535 ;; Current mode. One of: `emacs-state', `vi-state', `insert-state' |
544 (viper-deflocalvar viper-current-state 'emacs-state) | 536 (viper-deflocalvar viper-current-state 'emacs-state) |