summaryrefslogtreecommitdiff
path: root/lisp/vcursor.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@is.elta.co.il>2004-02-21 13:37:46 +0000
committerEli Zaretskii <eliz@is.elta.co.il>2004-02-21 13:37:46 +0000
commit69e82404c092d8dbe35e618da04b5bc423f5ef61 (patch)
tree5e1d5c1587570f56ed9333b59315b5b4582ed33f /lisp/vcursor.el
parent8bcfd13b545f05f64ad00cbabfb8bdd1d1dd9b94 (diff)
downloademacs-69e82404c092d8dbe35e618da04b5bc423f5ef61.tar.gz
(vcursor-modifiers): New defcustom.
(vcursor-cs-binding): Use vcursor-modifiers instead of a hard-coded list.
Diffstat (limited to 'lisp/vcursor.el')
-rw-r--r--lisp/vcursor.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index 6d06dbdb9dc..4de92f02f0b 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -314,7 +314,7 @@
;; - The logic in vcursor-find-window is rather complicated and
;; therefore bug-prone, though in practice it seems to work OK.
;;
-;; Possible enhnacements:
+;; Possible enhancements:
;; It would be easy to implement vcursor-push (save vcursor position
;; as mark and deactivate) and vcursor-pop (deactivate vcursor and
;; move to last pushed position) functions.
@@ -342,9 +342,14 @@ disable the vcursor."
:type '(choice (const t) (const nil) (const copy))
:group 'vcursor)
+(defcustom vcursor-modifiers (list 'control 'shift)
+ "*A list of modifiers that are used to define vcursor key bindings."
+ :type '(repeat symbol)
+ :group 'vcursor)
+
;; Needed for defcustom, must be up here
(defun vcursor-cs-binding (base &optional meta)
- (vector (let ((key (list 'control 'shift (intern base))))
+ (vector (let ((key (append vcursor-modifiers (list (intern base)))))
(if meta
(cons 'meta key)
key))))