I like this Emacs package called Emacs Centered Point link. I must highlight that it is not listed on MELPA/ELPA.
Until now, I have just appended the snippet to my init file with the following and it works:
(define-minor-mode centered-point-mode "Alaways center the cursor in the middle of the screen." :lighter "..." (cond (centered-point-mode (add-hook 'post-command-hook 'pmd/line-change)) (t (remove-hook 'post-command-hook 'pmd/line-change)))) (defun pmd/line-change () (when (eq (get-buffer-window) (selected-window)) (recenter))) (provide 'centeredpoint) (centered-point-mode t) ;;enable it globally
But, I have been completely re-writing my init file to be as declarative as possible with use-package.
And now I am unsure about how to handle this package since it is not on MELPA/ELPA.
Ceteris paribus (other things equal), is it possible to wrap this with use-package? If possible, how to do so?
Would it be even more verbose than keeping things as they are?