summaryrefslogtreecommitdiff
path: root/lisp/textmodes/remember.el
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2007-11-01 04:40:55 +0000
committerMichael Olson <mwolson@gnu.org>2007-11-01 04:40:55 +0000
commit80f0c18f73f7c0559b957942d0e83d60d5a9434d (patch)
treeadb77e67de332a1c19f0c6f2c286f3f684d6fa8d /lisp/textmodes/remember.el
parent174a72eaf421bf2de5d20a23e226d846dfa17ae0 (diff)
downloademacs-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.el11
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].