]> git.eshelyaron.com Git - emacs.git/commitdiff
Bind Cmd-t to menu-set-font on macOS
authorDaniel Martín <mardani29@yahoo.es>
Tue, 14 Jun 2022 12:23:06 +0000 (14:23 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 14 Jun 2022 12:23:06 +0000 (14:23 +0200)
* 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).

lisp/term/ns-win.el

index 677ebb400e0baabd70b9d117c91cec1e8d6c2a4f..84c5b087b9a43cdf4b60e9521a021eeb1ea44dea 100644 (file)
@@ -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)