From a2ce6ebc59333a67352ad51a9de17f0e93cdfdbe Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 26 Sep 2020 11:22:59 +0200 Subject: [PATCH] Show current zoom level in corresponding hydra --- site-lisp/db-hydras.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-hydras.el b/site-lisp/db-hydras.el index 9b5541e..aa68d80 100644 --- a/site-lisp/db-hydras.el +++ b/site-lisp/db-hydras.el @@ -21,8 +21,11 @@ ;; zooming with single keystrokes (from oremacs) (defhydra hydra-zoom (:color red - :body-pre (require 'face-remap)) - "zoom" + :body-pre (require 'face-remap)) + ;; the following newline is important, as otherwise the format string is not + ;; interpreted correctly; cf. https://oremacs.com/2015/02/23/hydra-0.11.0/ + " +Zoom (%`text-scale-mode-amount): " ("g" text-scale-increase "increase") ("l" text-scale-decrease "decrease"))