From ec29a1ccfe90b3a7967f3d4c20448cb20c009aff Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 15 Oct 2022 08:57:52 -0400 Subject: CEnable winner-mode --- emacs/.config/emacs-kj/init.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs/.config/emacs-kj') diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el index 97bc421..b1a1caa 100644 --- a/emacs/.config/emacs-kj/init.el +++ b/emacs/.config/emacs-kj/init.el @@ -93,6 +93,8 @@ (setq avy-keys '(?a ?o ?e ?u ?i ?d ?h ?t ?n ?s)) ) +(winner-mode +1) + (use-package ace-window :bind (("C-c e" . ace-window)) @@ -171,6 +173,9 @@ (run-at-time nil (* 5 60) 'recentf-save-list) (setq recentf-max-saved-items 1000) +(setq global-mark-ring-max 500 + mark-ring-max 16) + ;; Example configuration for Consult (use-package consult ;; Replace bindings. Lazily loaded due by `use-package'. @@ -595,6 +600,8 @@ ("C-c C-r C-a" . eglot-code-actions) ("C-c C-r C-r" . eglot-rename) ("C-c C-i C-c" . insert-char) + ("C-c C-b C-u" . winner-undo) + ("C-c C-b U" . winner-redo) ("C-" . completion-at-point))) (let ((google-config-file -- cgit v1.2.3