add global scaling

This commit is contained in:
Miranda Marquez 2024-05-25 20:32:07 -08:00
parent 946ea868eb
commit 89b33c3eb6

View File

@ -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
"<escape>" '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)