From: Daniel Martín Date: Tue, 14 Jun 2022 12:23:06 +0000 (+0200) Subject: Bind Cmd-t to menu-set-font on macOS X-Git-Tag: emacs-29.0.90~1910^2~11 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3e74cf65161841ee4a0a584fdbba8958372753f9;p=emacs.git Bind Cmd-t to menu-set-font on macOS * lisp/term/ns-win.el (global-map): set-frame-font asks for a font using the minibuffer, but the former ns-popup-font-panel always showed the graphical font panel on macOS. To preserve the same behavior, bind it to menu-set-font, which is also called by Options, Set Default Font (bug#55967). --- diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 677ebb400e0..84c5b087b9a 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -142,7 +142,7 @@ The properties returned may include `top', `left', `height', and `width'." (define-key global-map [?\s-p] 'ns-print-buffer) (define-key global-map [?\s-q] 'save-buffers-kill-emacs) (define-key global-map [?\s-s] 'save-buffer) -(define-key global-map [?\s-t] 'set-frame-font) +(define-key global-map [?\s-t] 'menu-set-font) (define-key global-map [?\s-u] 'revert-buffer) (define-key global-map [?\s-v] 'yank) (define-key global-map [?\s-w] 'delete-frame)