From 89b33c3eb64ed20c5db2ff6142f4758a4f78dd12 Mon Sep 17 00:00:00 2001 From: Miranda Marquez Date: Sat, 25 May 2024 20:32:07 -0800 Subject: [PATCH] add global scaling --- lisp/mir-keybinds.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lisp/mir-keybinds.el b/lisp/mir-keybinds.el index 1b429e6..19b7e4f 100644 --- a/lisp/mir-keybinds.el +++ b/lisp/mir-keybinds.el @@ -19,10 +19,18 @@ :timeout 0.25 "q" 'toggle-input-method)) ;; Zoom, for bad resolutions (windows) +(defun mir/global-text-increase () + (interactive) + (global-text-scale-adjust 1)) +(defun mir/global-text-decrease () + (interactive) + (global-text-scale-adjust -1)) (general-define-key "" 'keyboard-escape-quit "C--" 'text-scale-decrease - "C-=" 'text-scale-increase) + "C-=" 'text-scale-increase + "C-_" 'mir/global-text-decrease + "C-+" 'mir/global-text-increase) ;; we are not spacemacs, but we might be (general-define-key :states '(normal visual)