emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/valign 44651e9 086/198: * valign.el (valign-mode): Chan


From: Stefan Monnier
Subject: [elpa] externals/valign 44651e9 086/198: * valign.el (valign-mode): Change text-scale hooks.
Date: Tue, 1 Dec 2020 18:19:22 -0500 (EST)

branch: externals/valign
commit 44651e95d05fda65484f6f3d84936aa1f43b7e77
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    * valign.el (valign-mode): Change text-scale hooks.
---
 valign.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/valign.el b/valign.el
index 6f56e46..7f6c1f0 100644
--- a/valign.el
+++ b/valign.el
@@ -679,7 +679,8 @@ When they are fontified next time."
         (add-hook 'org-agenda-finalize-hook #'valign--force-align-buffer)
         ;; Sadly some functions refuse to work with
         ;; `valign--align-buffer-on-fontification.'
-        (dolist (fn '(text-scale-adjust
+        (dolist (fn '(text-scale-increase
+                      text-scale-decrease
                       markdown-toggle-inline-images
                       org-toggle-inline-images))
           (advice-add fn :after #'valign--force-align-buffer))
@@ -714,7 +715,8 @@ When they are fontified next time."
     (dolist (hook '(org-mode-hook markdown-mode-hook))
       (remove-hook hook #'valign--add-to-jit-lock))
     (remove-hook 'org-agenda-finalize-hook #'valign--force-align-buffer)
-    (dolist (fn '(text-scale-adjust
+    (dolist (fn '(text-scale-increase
+                  text-scale-decrease
                   markdown-toggle-inline-images
                   org-toggle-inline-images))
       (advice-add fn :after #'valign--force-align-buffer))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]