Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
deftsp committed Sep 7, 2021
1 parent 9cba665 commit a0462cd
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions lisp/50misc.el
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,20 @@ Current position is preserved."
(interactive))
(global-set-key "\M-\C-y" 'kill-ring-search))

;; undo
(use-package undo-fu :config
;; Increase undo history limits to reduce likelihood of data loss
(setq undo-limit 400000 ; 400kb (default is 160kb)
undo-strong-limit 3000000 ; 3mb (default is 240kb)
undo-outer-limit 48000000)) ; 48mb (default is 24mb)

(use-package undo-fu-session
:config
(setq undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'" "/git-rebase-todo\\'")))

(global-undo-fu-session-mode +1)


;; (use-package undo-tree
;; :bind (("s-z" . undo-tree-undo)
;; ("s-Z" . undo-tree-redo))
Expand All @@ -1107,13 +1121,6 @@ Current position is preserved."
;; (setq-default undo-tree-visualizer-diff t)
;; (setq undo-tree-mode-lighter " UT"))

(use-package undo-fu-session
:config
(setq undo-fu-session-incompatible-files '("/COMMIT_EDITMSG\\'" "/git-rebase-todo\\'")))

(global-undo-fu-session-mode)


(use-package bookmark
:defer t
:init
Expand Down

0 comments on commit a0462cd

Please sign in to comment.