]> git.eshelyaron.com Git - emacs.git/commitdiff
Use help-key-binding face in text scale adjust messages
authorStefan Kangas <stefan@marxist.se>
Sat, 2 Jul 2022 15:32:14 +0000 (17:32 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 2 Jul 2022 15:32:14 +0000 (17:32 +0200)
* lisp/face-remap.el (text-scale-adjust)
(global-text-scale-adjust): Use substitute-command-keys.

lisp/face-remap.el

index ade650c629ed10a91e2b3599e09b96fbdc8f1ed2..7037bc58cb2ea0e2e55f877ec79b6fcdf13f2226 100644 (file)
@@ -409,7 +409,8 @@ See also the related command `global-text-scale-adjust'."
               (_ inc))))
       (text-scale-increase step)
       ;; (unless (zerop step)
-      (message "Use +,-,0 for further adjustment")
+      (message (substitute-command-keys
+                "Use \\`+',\\`-',\\`0' for further adjustment"))
       (set-transient-map
        (let ((map (make-sparse-keymap)))
          (dolist (mods '(() (control)))
@@ -514,7 +515,8 @@ See also the related command `text-scale-adjust'."
                (not global-text-scale-adjust-resizes-frames)))
           (set-face-attribute 'default nil :height new)))
       (when (characterp key)
-        (message "Use +,-,0 for further adjustment")
+        (message (substitute-command-keys
+                  "Use \\`+',\\`-',\\`0' for further adjustment"))
         (set-transient-map
          (let ((map (make-sparse-keymap)))
            (dolist (mod '(() (control meta)))