From 8a44b7dd7e8ec600df067231860719d889fcf372 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 23 May 2023 10:53:02 +0200 Subject: [PATCH] Move buffer while maintaining the cursor centered --- config.el | 4 ++++ packages.el | 2 ++ 2 files changed, 6 insertions(+) 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)