* lisp/bindings.el (global-map): Bind XF86Forward to next-buffer and
XF86Back to previous-buffer. (minibuffer-local-map): Bind them to next-history-element and previous-history-element respectively. * lisp/help-mode.el (help-mode-map): Bind them to help-go-forward and help-go-back respectively. * lisp/info.el (Info-mode-map): Bind them to Info-history-forward and Info-history-back respectively. These are the keys next to Up on the ThinkPad keyboard.
This commit is contained in:
parent
de7e2b3687
commit
3d10db47a7
4 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,15 @@
|
|||
2012-06-08 Sam Steingold <sds@gnu.org>
|
||||
|
||||
* bindings.el (global-map): Bind XF86Forward to next-buffer and
|
||||
XF86Back to previous-buffer.
|
||||
(minibuffer-local-map): Bind them to next-history-element and
|
||||
previous-history-element respectively.
|
||||
* help-mode.el (help-mode-map): Bind them to help-go-forward and
|
||||
help-go-back respectively.
|
||||
* info.el (Info-mode-map): Bind them to Info-history-forward and
|
||||
Info-history-back respectively.
|
||||
These are the keys next to Up on the ThinkPad keyboard.
|
||||
|
||||
2012-06-08 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
Get rid of cl-lexical-let, keeping only lexical-let for compatibility.
|
||||
|
|
|
@ -784,16 +784,20 @@ if `inhibit-field-text-motion' is non-nil."
|
|||
|
||||
(define-key ctl-x-map [right] 'next-buffer)
|
||||
(define-key ctl-x-map [C-right] 'next-buffer)
|
||||
(define-key global-map [XF86Forward] 'next-buffer)
|
||||
(define-key ctl-x-map [left] 'previous-buffer)
|
||||
(define-key ctl-x-map [C-left] 'previous-buffer)
|
||||
(define-key global-map [XF86Back] 'previous-buffer)
|
||||
|
||||
(let ((map minibuffer-local-map))
|
||||
(define-key map "\en" 'next-history-element)
|
||||
(define-key map [next] 'next-history-element)
|
||||
(define-key map [down] 'next-history-element)
|
||||
(define-key map [XF86Forward] 'next-history-element)
|
||||
(define-key map "\ep" 'previous-history-element)
|
||||
(define-key map [prior] 'previous-history-element)
|
||||
(define-key map [up] 'previous-history-element)
|
||||
(define-key map [XF86Back] 'previous-history-element)
|
||||
(define-key map "\es" 'next-matching-history-element)
|
||||
(define-key map "\er" 'previous-matching-history-element)
|
||||
;; Override the global binding (which calls indent-relative via
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
(define-key map [mouse-2] 'help-follow-mouse)
|
||||
(define-key map "\C-c\C-b" 'help-go-back)
|
||||
(define-key map "\C-c\C-f" 'help-go-forward)
|
||||
(define-key map [XF86Back] 'help-go-back)
|
||||
(define-key map [XF86Forward] 'help-go-forward)
|
||||
(define-key map "\C-c\C-c" 'help-follow-symbol)
|
||||
(define-key map "\r" 'help-follow)
|
||||
map)
|
||||
|
|
|
@ -3758,6 +3758,8 @@ If FORK is non-nil, it is passed to `Info-goto-node'."
|
|||
(define-key map "\177" 'Info-scroll-down)
|
||||
(define-key map [mouse-2] 'Info-mouse-follow-nearest-node)
|
||||
(define-key map [follow-link] 'mouse-face)
|
||||
(define-key map [XF86Back] 'Info-history-back)
|
||||
(define-key map [XF86Forward] 'Info-history-forward)
|
||||
map)
|
||||
"Keymap containing Info commands.")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue