Commit fa462250 authored by Richard M. Stallman's avatar Richard M. Stallman

(electric-history-map): Don't use fillarray;

make default bindings instead.  Bind up, down, home, next, prior.
parent 7ecc7c8e
......@@ -42,10 +42,10 @@ With prefix arg NOCONFIRM, execute current line as-is without editing."
(defvar electric-history-map ())
(if electric-history-map
()
(setq electric-history-map (make-keymap))
(fillarray electric-history-map 'Electric-history-undefined)
(define-key electric-history-map "\e" (make-keymap))
(fillarray (lookup-key electric-history-map "\e") 'Electric-history-undefined)
(setq electric-history-map (make-sparse-keymap))
(define-key electric-history-map [t] 'Electric-history-undefined)
(define-key electric-history-map "\e" (make-sparse-keymap))
(define-key electric-history-map [?\e t] 'Electric-history-undefined)
(define-key electric-history-map "\C-u" 'universal-argument)
(define-key electric-history-map " " 'Electric-command-history-redo-expression)
(define-key electric-history-map "!" 'Electric-command-history-redo-expression)
......@@ -74,6 +74,11 @@ With prefix arg NOCONFIRM, execute current line as-is without editing."
(define-key electric-history-map "\C-p" 'previous-line)
(define-key electric-history-map "\ev" 'scroll-down)
(define-key electric-history-map "\C-v" 'scroll-up)
(define-key electric-history-map [home] 'beginning-of-buffer)
(define-key electric-history-map [down] 'next-line)
(define-key electric-history-map [up] 'previous-line)
(define-key electric-history-map [prior] 'scroll-down)
(define-key electric-history-map [next] 'scroll-up)
(define-key electric-history-map "\C-l" 'recenter)
(define-key electric-history-map "\e\C-v" 'scroll-other-window))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment