Add center-content-update to hooks
This commit is contained in:
parent
60d7910690
commit
6527a1c814
@ -144,8 +144,13 @@ and vertically within the window."
|
|||||||
:global nil
|
:global nil
|
||||||
:lighter " Center"
|
:lighter " Center"
|
||||||
(if center-content-mode
|
(if center-content-mode
|
||||||
(center-content--enable)
|
(progn
|
||||||
(center-content--disable)))
|
(center-content--enable)
|
||||||
|
(add-hook 'post-command-hook #'center-content-update 50 t)
|
||||||
|
(add-hook 'window-configuration-change-hook #'center-content-update 50 t))
|
||||||
|
(center-content--disable)
|
||||||
|
(remove-hook 'post-command-hook #'center-content-update t)
|
||||||
|
(remove-hook 'window-configuration-change-hook #'center-content-update t)))
|
||||||
|
|
||||||
(provide 'center-content-mode)
|
(provide 'center-content-mode)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user