How to make M-x undo
more fine-grained or sensitive?
Example: say, I wrote:
foo (bar baz) ()
then I M-x undo
and receive:
foo (bar
but what I want to get after this undo is:
foo (bar baz)
How to make M-x undo
more fine-grained or sensitive?
Example: say, I wrote:
foo (bar baz) ()
then I M-x undo
and receive:
foo (bar
but what I want to get after this undo is:
foo (bar baz)
I like to do two things with undo. I turn off the amalgamation stuff (which by doing so permits undo one keystroke at at time); and, I get rid of the timer (because timers affect performance and drive me absolutely bonkers, unless they are idle-timers.
Alternatively, you can modify undo-auto-amalgamate
which is hard coded at 20 and set it to a lesser/greater amount.
(when (timerp undo-auto-current-boundary-timer)
(cancel-timer undo-auto-current-boundary-timer))
(fset 'undo-auto--undoable-change
(lambda () (add-to-list 'undo-auto--undoably-changed-buffers (current-buffer))))
(fset 'undo-auto-amalgamate 'ignore)