diff options
| -rw-r--r-- | lisp/textmodes/two-column.el | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/lisp/textmodes/two-column.el b/lisp/textmodes/two-column.el index 41cd82ce728..e4cbbbec95f 100644 --- a/lisp/textmodes/two-column.el +++ b/lisp/textmodes/two-column.el | |||
| @@ -162,14 +162,12 @@ minus this value." | |||
| 162 | :type 'boolean) | 162 | :type 'boolean) |
| 163 | 163 | ||
| 164 | 164 | ||
| 165 | (defvar 2C-mode-map | 165 | (defvar-keymap 2C-mode-map |
| 166 | (let ((map (make-sparse-keymap))) | 166 | :doc "Keymap for commands for setting up two-column mode." |
| 167 | (define-key map "2" #'2C-two-columns) | 167 | "2" #'2C-two-columns |
| 168 | (define-key map [f2] #'2C-two-columns) | 168 | "<f2>" #'2C-two-columns |
| 169 | (define-key map "b" #'2C-associate-buffer) | 169 | "b" #'2C-associate-buffer |
| 170 | (define-key map "s" #'2C-split) | 170 | "s" #'2C-split) |
| 171 | map) | ||
| 172 | "Keymap for commands for setting up two-column mode.") | ||
| 173 | 171 | ||
| 174 | ;;;###autoload (autoload '2C-command "two-column" () t 'keymap) | 172 | ;;;###autoload (autoload '2C-command "two-column" () t 'keymap) |
| 175 | (fset '2C-command 2C-mode-map) | 173 | (fset '2C-command 2C-mode-map) |
| @@ -177,21 +175,19 @@ minus this value." | |||
| 177 | ;; This one is for historical reasons and simple keyboards, it is not | 175 | ;; This one is for historical reasons and simple keyboards, it is not |
| 178 | ;; at all mnemonic. All usual sequences containing 2 were used, and | 176 | ;; at all mnemonic. All usual sequences containing 2 were used, and |
| 179 | ;; f2 could not be set up in a standard way under Emacs 18. | 177 | ;; f2 could not be set up in a standard way under Emacs 18. |
| 180 | ;;;###autoload (global-set-key "\C-x6" #'2C-command) | 178 | ;;;###autoload (keymap-global-set "C-x 6" #'2C-command) |
| 181 | 179 | ||
| 182 | ;;;###autoload (global-set-key [f2] #'2C-command) | 180 | ;;;###autoload (keymap-global-set "<f2>" #'2C-command) |
| 183 | 181 | ||
| 184 | (defvar 2C-minor-mode-map | 182 | (defvar-keymap 2C-minor-mode-map |
| 185 | (let ((map (make-sparse-keymap))) | 183 | :doc "Keymap for commands for use in two-column mode." |
| 186 | (define-key map "1" #'2C-merge) | 184 | "1" #'2C-merge |
| 187 | (define-key map "d" #'2C-dissociate) | 185 | "d" #'2C-dissociate |
| 188 | (define-key map "o" #'2C-associated-buffer) | 186 | "o" #'2C-associated-buffer |
| 189 | (define-key map "\^m" #'2C-newline) | 187 | "RET" #'2C-newline |
| 190 | (define-key map "|" #'2C-toggle-autoscroll) | 188 | "|" #'2C-toggle-autoscroll |
| 191 | (define-key map "{" #'2C-shrink-window-horizontally) | 189 | "{" #'2C-shrink-window-horizontally |
| 192 | (define-key map "}" #'2C-enlarge-window-horizontally) | 190 | "}" #'2C-enlarge-window-horizontally) |
| 193 | map) | ||
| 194 | "Keymap for commands for use in two-column mode.") | ||
| 195 | 191 | ||
| 196 | (setq minor-mode-map-alist | 192 | (setq minor-mode-map-alist |
| 197 | (cons (cons '2C-mode | 193 | (cons (cons '2C-mode |