]> code.delx.au - gnu-emacs/blobdiff - lisp/chistory.el
(math-read-angle-bracket): Use declared variables math-exp-pos,
[gnu-emacs] / lisp / chistory.el
index aae1d728ee715b86509351767e393723b62d29c4..dde30c75e0e6d6e5151c2614b39293a3b0fd00ab 100644 (file)
@@ -125,6 +125,16 @@ The buffer is left in Command History mode."
          (error "No command history")
        (command-history-mode)))))
 
+(defvar command-history-map nil)
+(unless command-history-map
+  (setq command-history-map (make-sparse-keymap))
+  (set-keymap-parent command-history-map lisp-mode-shared-map)
+  (suppress-keymap command-history-map)
+  (define-key command-history-map "x" 'command-history-repeat)
+  (define-key command-history-map "\n" 'next-line)
+  (define-key command-history-map "\r" 'next-line)
+  (define-key command-history-map "\177" 'previous-line))
+
 (defun command-history-mode ()
   "Major mode for listing and repeating recent commands.
 
@@ -149,16 +159,6 @@ Keybindings:
   :type 'hook
   :group 'chistory)
 
-(defvar command-history-map nil)
-(unless command-history-map
-  (setq command-history-map (make-sparse-keymap))
-  (set-keymap-parent command-history-map lisp-mode-shared-map)
-  (suppress-keymap command-history-map)
-  (define-key command-history-map "x" 'command-history-repeat)
-  (define-key command-history-map "\n" 'next-line)
-  (define-key command-history-map "\r" 'next-line)
-  (define-key command-history-map "\177" 'previous-line))
-
 (defun command-history-repeat ()
   "Repeat the command shown on the current line.
 The buffer for that command is the previous current buffer."
@@ -191,4 +191,5 @@ and runs the normal hook `command-history-hook'."
 
 (provide 'chistory)
 
+;;; arch-tag: c201a0cd-89f2-4d39-a532-4cb309391dbd
 ;;; chistory.el ends here