Compare commits
2 Commits
60e3f0c3bb
...
6527a1c814
Author | SHA1 | Date | |
---|---|---|---|
6527a1c814 | |||
60d7910690 |
@ -1,4 +1,4 @@
|
||||
;;; center-content.el --- Center buffer content -*- lexical-binding: t; -*-
|
||||
;;; center-content-mode.el --- Center buffer content -*- lexical-binding: t; -*-
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
@ -144,9 +144,14 @@ and vertically within the window."
|
||||
:global nil
|
||||
:lighter " Center"
|
||||
(if center-content-mode
|
||||
(progn
|
||||
(center-content--enable)
|
||||
(center-content--disable)))
|
||||
(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)
|
||||
(provide 'center-content-mode)
|
||||
|
||||
;;; center-content.el ends here
|
||||
;;; center-content-mode.el ends here
|
Loading…
Reference in New Issue
Block a user