diff --git a/config.el b/config.el index 421a711..a5b3f77 100644 --- a/config.el +++ b/config.el @@ -150,3 +150,7 @@ (setq tab-width 2) ;; Set up nix LSP support (add-hook 'nix-mode-local-vars-hook #'lsp!) +;; Move buffer while maintaining cursor centered +(use-package! centered-cursor-mode + :config + (global-centered-cursor-mode)) diff --git a/packages.el b/packages.el index b9c72c1..0d3eaf7 100644 --- a/packages.el +++ b/packages.el @@ -30,3 +30,5 @@ (package! platformio-mode) ;; Light theme (package! os1-theme :recipe (:host github :repo "sashimacs/os1-theme")) +;; Move buffer while maintaining cursor centered +(package! centered-cursor-mode)