There are two bindings for undo-tree-undo
(C-_
and C-/
) and undo-tree-redo
(M-_
and C-?
) defined in undo-tree, but now I don't want those bindings(delete
those), I just want to bind C-z
to undo-tree-undo
and C-S-z
to undo-tree-redo
(short and simple), I tried
(define-key undo-tree-map (kbd "C-_") nil)
or
(global-unset-key (kbd "C-_"))
to delete the bindings, they all doesn't work(only work for current session), if I restart Emacs, the C-_
will still be bound to undo-tree-undo
.
But if I set above two lines at the same time, the binding will be gone, that's really weird, how can I use one line to delete the bound.
BTW, if you can delete the old bindings and set the new binding(C-z
) at the same time, that would be better?