summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2019-11-28 00:35:53 +0200
committerJuri Linkov <juri@linkov.net>2019-11-28 00:35:53 +0200
commit7921811726b878c21df99208cbfcfdb9634378b9 (patch)
tree22e8b2dced4d6e7836349d914eb03df395f1073a /lisp/bindings.el
parentf655967b83378b56390904a503ec0f1a19a1a7e9 (diff)
downloademacs-7921811726b878c21df99208cbfcfdb9634378b9.tar.gz
Menu bar rearrangements, move Print menu items to submenu, etc. (bug#37594)
* lisp/menu-bar.el (menu-bar-print-menu): New defvar. (menu-bar-file-menu): Move print entries to submenu. Add menu entries for tab-new, tab-close, make-frame-on-monitor. (menu-bar-showhide-menu): Add menu entry for global-tab-line-mode. Don't add toggle-tab-bar-mode-from-frame on ns where it's unavailable. (menu-bar-tools-menu): Add rgrep. * lisp/bindings.el (next-buffer, previous-buffer): Advertise bindings 'C-x right' and 'C-x left' instead of 'XF86Forward' and 'XF86Back'.
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r--lisp/bindings.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 16da2bdf9a6..738928b478e 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -933,9 +933,11 @@ 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)
+(put 'next-buffer :advertised-binding [?\C-x right])
(define-key ctl-x-map [left] 'previous-buffer)
(define-key ctl-x-map [C-left] 'previous-buffer)
(define-key global-map [XF86Back] 'previous-buffer)
+(put 'previous-buffer :advertised-binding [?\C-x left])
(let ((map minibuffer-local-map))
(define-key map "\en" 'next-history-element)