# HG changeset patch # User Kim F. Storm # Date 1113902732 0 # Node ID 9a27f4097b8f9dca124d84c70cfefc7ff05405c8 # Parent 07fac5b8e9dcd7faf4b01273e87134a3d247ba91 (next-buffer, prev-buffer, next-error) (scroll-other-window, keyboard-quit, keyboard-escape-quit) (clone-indirect-buffer-other-window): Move bindings from simple.el. (next-buffer, prev-buffer): Add C-x C-right and C-x C-left bindings. (next-error, previous-error): Add M-g M-n/n and M-g M-p/p bindings. diff -r 07fac5b8e9dc -r 9a27f4097b8f lisp/bindings.el --- a/lisp/bindings.el Tue Apr 19 09:13:36 2005 +0000 +++ b/lisp/bindings.el Tue Apr 19 09:25:32 2005 +0000 @@ -628,6 +628,10 @@ ;; (define-key ctl-x-map "n" 'narrow-to-region) ;; (define-key ctl-x-map "w" 'widen) +;; Quitting +(define-key global-map "\e\e\e" 'keyboard-escape-quit) +(define-key global-map "\C-g" 'keyboard-quit) + (define-key global-map "\C-j" 'newline-and-indent) (define-key global-map "\C-m" 'newline) (define-key global-map "\C-o" 'open-line) @@ -652,9 +656,18 @@ ;; Many people are used to typing C-/ on X terminals and getting C-_. (define-key global-map [?\C-/] 'undo) (define-key global-map "\C-_" 'undo) +;; Richard said that we should not use C-x and I have +;; no idea whereas to bind it. Any suggestion welcome. -stef +;; (define-key ctl-x-map "U" 'undo-only) + (define-key esc-map "!" 'shell-command) (define-key esc-map "|" 'shell-command-on-region) +(define-key global-map [?\C-x right] 'next-buffer) +(define-key global-map [?\C-x C-right] 'next-buffer) +(define-key global-map [?\C-x left] 'prev-buffer) +(define-key global-map [?\C-x C-left] 'prev-buffer) + (let ((map minibuffer-local-map)) (define-key map "\en" 'next-history-element) (define-key map [next] 'next-history-element) @@ -709,6 +722,13 @@ (define-key esc-map "g\M-g" 'goto-line) (define-key esc-map "gg" 'goto-line) +(define-key esc-map "gn" 'next-error) +(define-key esc-map "g\M-n" 'next-error) +(define-key ctl-x-map "`" 'next-error) + +(define-key esc-map "gp" 'previous-error) +(define-key esc-map "g\M-p" 'previous-error) + ;;(defun function-key-error () ;; (interactive) ;; (error "That function key is not bound to anything")) @@ -737,6 +757,7 @@ (define-key global-map [C-next] 'scroll-left) (define-key global-map [M-next] 'scroll-other-window) (define-key global-map [M-prior] 'scroll-other-window-down) +(define-key esc-map [?\C-\S-v] 'scroll-other-window-down) (define-key global-map [end] 'end-of-line) (define-key global-map [C-end] 'end-of-buffer) (define-key global-map [M-end] 'end-of-buffer-other-window) @@ -1020,6 +1041,8 @@ (define-key ctl-x-map "z" 'repeat) +(define-key ctl-x-4-map "c" 'clone-indirect-buffer-other-window) + ;; Don't look for autoload cookies in this file. ;; Local Variables: ;; no-update-autoloads: t