diff options
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/crisp.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/emulation/crisp.el b/lisp/emulation/crisp.el index 64ca561fbe2..a53adf00fea 100644 --- a/lisp/emulation/crisp.el +++ b/lisp/emulation/crisp.el | |||
| @@ -55,6 +55,8 @@ | |||
| 55 | 55 | ||
| 56 | ;;; Code: | 56 | ;;; Code: |
| 57 | 57 | ||
| 58 | (eval-when-compile (require 'cl)) | ||
| 59 | |||
| 58 | ;; local variables | 60 | ;; local variables |
| 59 | 61 | ||
| 60 | (defgroup crisp nil | 62 | (defgroup crisp nil |
| @@ -205,8 +207,8 @@ does not load the scroll-all package." | |||
| 205 | (define-key crisp-mode-map [(meta m)] 'set-mark-command) | 207 | (define-key crisp-mode-map [(meta m)] 'set-mark-command) |
| 206 | (define-key crisp-mode-map [(meta n)] 'bury-buffer) | 208 | (define-key crisp-mode-map [(meta n)] 'bury-buffer) |
| 207 | (define-key crisp-mode-map [(meta p)] 'crisp-unbury-buffer) | 209 | (define-key crisp-mode-map [(meta p)] 'crisp-unbury-buffer) |
| 208 | (define-key crisp-mode-map [(meta u)] 'advertised-undo) | 210 | (define-key crisp-mode-map [(meta u)] 'undo) |
| 209 | (define-key crisp-mode-map [(f14)] 'advertised-undo) | 211 | (define-key crisp-mode-map [(f14)] 'undo) |
| 210 | (define-key crisp-mode-map [(meta w)] 'save-buffer) | 212 | (define-key crisp-mode-map [(meta w)] 'save-buffer) |
| 211 | (define-key crisp-mode-map [(meta x)] 'crisp-meta-x-wrapper) | 213 | (define-key crisp-mode-map [(meta x)] 'crisp-meta-x-wrapper) |
| 212 | (define-key crisp-mode-map [(meta ?0)] (lambda () | 214 | (define-key crisp-mode-map [(meta ?0)] (lambda () |
| @@ -357,6 +359,9 @@ With ARG, turn CRiSP mode on if ARG is positive, off otherwise." | |||
| 357 | (not crisp-mode) | 359 | (not crisp-mode) |
| 358 | (> (prefix-numeric-value arg) 0))) | 360 | (> (prefix-numeric-value arg) 0))) |
| 359 | (when crisp-mode | 361 | (when crisp-mode |
| 362 | ;; Make menu entries show M-u or f14 in preference to C-x u. | ||
| 363 | (put 'undo :advertised-binding | ||
| 364 | (list* [?\M-u] [f14] (get 'undo :advertised-binding))) | ||
| 360 | ;; Force transient-mark-mode, so that the marking routines work as | 365 | ;; Force transient-mark-mode, so that the marking routines work as |
| 361 | ;; expected. If the user turns off transient mark mode, most | 366 | ;; expected. If the user turns off transient mark mode, most |
| 362 | ;; things will still work fine except the crisp-(copy|kill) | 367 | ;; things will still work fine except the crisp-(copy|kill) |