remember-buffer to emphasize that this does not have any
functional overlap with the `remember' function.
(remember-destroy): Remove autoload cookie.
+ (remember-mode-map): Define and initialize in one step.
2007-11-01 Glenn Morris <rgm@gnu.org>
;;; 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].