branch: externals/valign
commit 44651e95d05fda65484f6f3d84936aa1f43b7e77
Author: Yuan Fu <[email protected]>
Commit: Yuan Fu <[email protected]>
* 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))