diff options
Diffstat (limited to 'basics.el')
-rw-r--r-- | basics.el | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/basics.el b/basics.el index 428dcd1..68cdc2a 100644 --- a/basics.el +++ b/basics.el | |||
@@ -560,12 +560,23 @@ N spaces." | |||
560 | :hook | 560 | :hook |
561 | (embark-collect-mode . consult-preview-at-point-mode)) | 561 | (embark-collect-mode . consult-preview-at-point-mode)) |
562 | 562 | ||
563 | (use-package undo-fu | ||
564 | :ensure t | ||
565 | :init | ||
566 | (setq undo-limit 67108864) ; 64mb. | ||
567 | (setq undo-strong-limit 100663296) ; 96mb. | ||
568 | (setq undo-outer-limit 1006632960) ; 960mb. | ||
569 | :bind (("C-/" . undo-fu-only-undo) | ||
570 | ("C-?" . undo-fu-only-redo))) | ||
571 | |||
563 | (use-package undo-fu-session | 572 | (use-package undo-fu-session |
564 | :ensure t | 573 | :ensure t |
565 | :config | 574 | :config |
566 | (setq undo-fu-session-incompatible-files | 575 | (setopt undo-fu-session-compression (cond |
567 | '("/COMMIT_EDITMSG\\'" | 576 | ((executable-find "gunzip") 'gz) |
568 | "/git-rebase-todo\\'")) | 577 | ((executable-find "bzip2") 'bz2)) |
578 | undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'" | ||
579 | "/git-rebase-todo\\'")) | ||
569 | (global-undo-fu-session-mode)) | 580 | (global-undo-fu-session-mode)) |
570 | 581 | ||
571 | (use-package crux | 582 | (use-package crux |