From: "Clément Pit-Claudel" <cpitclaudel@gmail.com>
To: Gregory Heytings <gregory@heytings.org>
Cc: 48307@debbugs.gnu.org
Subject: bug#48307: Feature request: provide default keybindings to change the font size in all windows
Date: Sun, 9 May 2021 17:36:18 -0400 [thread overview]
Message-ID: <999f8d7a-3c1b-bf72-dd15-472be09b8d34@gmail.com> (raw)
In-Reply-To: <618a480bbe37bb9057f9@heytings.org>
On 5/9/21 4:16 PM, Gregory Heytings wrote:
>> Not all the implementations are good, and it would be very nice if such a feature were available out of the box.
>>
>
> Would the following do what you want?
>
> (defun global-text-scale-adjust-do (increment)
> (set-face-attribute 'default nil :height
> (+ (face-attribute 'default :height) increment))
> (message "Use + and - for further adjustment")
> (set-transient-map
> (let ((map (make-sparse-keymap)))
> (define-key map (kbd "+") 'global-text-scale-adjust-increase)
> (define-key map (kbd "-") 'global-text-scale-adjust-decrease)
> map)))
> (defun global-text-scale-adjust-increase ()
> (interactive)
> (global-text-scale-adjust-do +5))
> (defun global-text-scale-adjust-decrease ()
> (interactive)
> (global-text-scale-adjust-do -5))
> (global-set-key (kbd "C-x M-+") 'global-text-scale-adjust-increase)
> (global-set-key (kbd "C-x M--") 'global-text-scale-adjust-decrease)
Yup, probably. The performance isn't great, but that's more or less what I have in my .emacs.
next prev parent reply other threads:[~2021-05-09 21:36 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-09 7:09 bug#48307: Feature request: provide default keybindings to change the font size in all windows Clément Pit-Claudel
2021-05-09 8:23 ` Eli Zaretskii
2021-05-09 15:31 ` Clément Pit-Claudel
2021-05-09 16:08 ` Eli Zaretskii
2021-05-09 16:39 ` bug#48307: [External] : " Drew Adams
2021-05-09 16:58 ` Eli Zaretskii
2021-05-09 22:30 ` Clément Pit-Claudel
2021-05-09 16:30 ` Drew Adams
2021-05-09 8:43 ` martin rudalics
2021-05-09 15:18 ` Clément Pit-Claudel
2021-05-09 16:05 ` bug#48307: [External] : " Drew Adams
2021-05-10 8:24 ` martin rudalics
2021-05-10 14:17 ` bug#48307: [External] : " Drew Adams
2021-05-10 14:17 ` Gregory Heytings
2021-05-10 14:26 ` Eli Zaretskii
2021-05-10 14:34 ` Gregory Heytings
2021-05-10 14:42 ` bug#48307: [External] : " Drew Adams
2021-05-10 15:07 ` Gregory Heytings
2021-05-10 15:26 ` Drew Adams
2021-05-10 14:53 ` Clément Pit-Claudel
2021-05-10 15:22 ` bug#48307: [External] : " Drew Adams
2021-05-10 15:36 ` Clément Pit-Claudel
2021-05-10 16:16 ` Eli Zaretskii
2021-05-10 16:26 ` Clément Pit-Claudel
2021-05-10 16:45 ` Clément Pit-Claudel
2021-05-10 18:16 ` Gregory Heytings
2021-05-10 18:34 ` Clément Pit-Claudel
2021-05-10 18:46 ` Eli Zaretskii
2021-05-10 19:04 ` Clément Pit-Claudel
2021-05-10 19:35 ` Gregory Heytings
2021-05-10 19:41 ` Clément Pit-Claudel
2021-05-10 19:47 ` Gregory Heytings
2021-05-25 7:58 ` Gregory Heytings
2021-05-25 12:31 ` Eli Zaretskii
2021-05-25 12:58 ` Gregory Heytings
2021-05-25 13:12 ` Eli Zaretskii
2021-05-25 13:16 ` Gregory Heytings
2021-05-25 13:42 ` Eli Zaretskii
2021-05-25 19:43 ` Lars Ingebrigtsen
2022-07-02 13:41 ` Lars Ingebrigtsen
2021-05-09 15:58 ` bug#48307: [External] : " Drew Adams
2021-05-09 21:38 ` Clément Pit-Claudel
2021-05-09 20:16 ` Gregory Heytings
2021-05-09 21:36 ` Clément Pit-Claudel [this message]
2021-05-09 22:03 ` Gregory Heytings
2021-05-09 22:15 ` Clément Pit-Claudel
2021-05-09 22:56 ` Gregory Heytings
2021-05-10 14:19 ` Eli Zaretskii
2021-05-10 14:24 ` Gregory Heytings
2021-05-10 14:33 ` Eli Zaretskii
2021-05-10 16:24 ` Gregory Heytings
2021-05-10 14:33 ` bug#48307: [External] : " Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=999f8d7a-3c1b-bf72-dd15-472be09b8d34@gmail.com \
--to=cpitclaudel@gmail.com \
--cc=48307@debbugs.gnu.org \
--cc=gregory@heytings.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.