diff options
author | Michael Olson <mwolson@gnu.org> | 2007-11-01 04:40:55 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2007-11-01 04:40:55 +0000 |
commit | 80f0c18f73f7c0559b957942d0e83d60d5a9434d (patch) | |
tree | adb77e67de332a1c19f0c6f2c286f3f684d6fa8d /lisp/textmodes/remember.el | |
parent | 174a72eaf421bf2de5d20a23e226d846dfa17ae0 (diff) | |
download | emacs-80f0c18f73f7c0559b957942d0e83d60d5a9434d.tar.gz |
remember.el (remember-mode-map): Define and initialize in one step.
Diffstat (limited to 'lisp/textmodes/remember.el')
-rw-r--r-- | lisp/textmodes/remember.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el index e6274b2b56b..9f8ad0aa9c7 100644 --- a/lisp/textmodes/remember.el +++ b/lisp/textmodes/remember.el @@ -452,13 +452,12 @@ application." ;;; Internal Functions: -(defvar remember-mode-map () +(defvar remember-mode-map + (let ((map (make-sparse-keymap))) + (define-key map "\C-x\C-s" 'remember-finalize) + (define-key map "\C-c\C-c" 'remember-finalize) + (define-key map "\C-c\C-k" 'remember-destroy)) "Keymap used in Remember mode.") -(when (not remember-mode-map) - (setq remember-mode-map (make-sparse-keymap)) - (define-key remember-mode-map "\C-x\C-s" 'remember-finalize) - (define-key remember-mode-map "\C-c\C-c" 'remember-finalize) - (define-key remember-mode-map "\C-c\C-k" 'remember-destroy)) (defun remember-mode () "Major mode for output from \\[remember]. |