aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/double.el29
1 files changed, 15 insertions, 14 deletions
diff --git a/lisp/double.el b/lisp/double.el
index 14b2a58606d..a494c6585be 100644
--- a/lisp/double.el
+++ b/lisp/double.el
@@ -1,6 +1,6 @@
1;;; double.el --- Support for keyboard remapping with double clicking 1;;; double.el --- Support for keyboard remapping with double clicking
2 2
3;; Copyright (C) 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1994,1997 Free Software Foundation, Inc.
4 4
5;; Author: Per Abrahamsen <abraham@dina.kvl.dk> 5;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
6;; Keywords: i18n 6;; Keywords: i18n
@@ -49,18 +49,13 @@
49;; of such mappings, and just supporting the most common would 49;; of such mappings, and just supporting the most common would
50;; increase the size of this nice small file manyfold. 50;; increase the size of this nice small file manyfold.
51 51
52;;; ChangeLog:
53
54;; * 1994-06-21 Per Abrahamsen
55;; Added `double-prefix-only'.
56;; * 1994-02-28 Per Abrahamsen
57;; Use 127 instead of 'delete to delete a character.
58;; * 1994-02-03 Per Abrahamsen
59;; Created.
60
61;;; Code: 52;;; Code:
62 53
63(defvar double-map 54(defgroup double nil
55 "Remap keyboard, but get original by typing the same key twice."
56 :group 'i18n)
57
58(defcustom double-map
64 '((?\; "\346" ";") 59 '((?\; "\346" ";")
65 (?\' "\370" "'") 60 (?\' "\370" "'")
66 (?\[ "\345" "[") 61 (?\[ "\345" "[")
@@ -72,12 +67,18 @@
72Each entry is a list with three elements: 67Each entry is a list with three elements:
731. The key activating the translation. 681. The key activating the translation.
742. The string to be inserted when the key is pressed once. 692. The string to be inserted when the key is pressed once.
753. The string to be inserted when the key is pressed twice.") 703. The string to be inserted when the key is pressed twice."
71 :group 'double
72 :type '(repeat (list (character :tag "Key")
73 (string :tag "Once")
74 (string :tag "Twice"))))
76 75
77(defvar double-prefix-only t 76(defcustom double-prefix-only t
78 "*Non-nil means that Double mode mapping only works for prefix keys. 77 "*Non-nil means that Double mode mapping only works for prefix keys.
79That is, for any key `X' in `double-map', `X' alone will be mapped 78That is, for any key `X' in `double-map', `X' alone will be mapped
80but not `C-u X' or `ESC X' since the X is not the prefix key.") 79but not `C-u X' or `ESC X' since the X is not the prefix key."
80 :group 'double
81 :type 'boolean)
81 82
82;;; Read Event 83;;; Read Event
83 84