From 3bfcbd3451fda072b777994a07938e8974cf1f1a Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 15 Apr 2021 15:26:56 -0400 Subject: [PATCH] Bind keys to rescale text --- emacs/.emacs.d/config/init-ui.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/emacs/.emacs.d/config/init-ui.el b/emacs/.emacs.d/config/init-ui.el index 69e41cf..ccc1fd7 100644 --- a/emacs/.emacs.d/config/init-ui.el +++ b/emacs/.emacs.d/config/init-ui.el @@ -26,4 +26,13 @@ (delete-dups (font-family-list))))) (set-frame-font font)) +(defun text-scale-reset () + (interactive) + (text-scale-increase 0)) + +(general-def + "C-c +" #'text-scale-increase + "C-c -" #'text-scale-decrease + "C-c 0" #'text-scale-reset) + (provide 'init-ui)