emacs undotree

linux toy 上说 

emacs 只有 undo ,没有 redo ……或者说它有 redo,但是相当的诡异,套用一句经典台词就是: 猥琐,非常的猥琐。

的确。。。emacs的redo的确是够猥琐的 一直没搞明白是怎么算的,好在有undo-tree.el这么个好东东

下载 https://raw.github.com/pylemon/emacs/master/lisps/undo-tree.el

在.emacs 中加入

;; undo-tree
(require 'undo-tree)
(global-undo-tree-mode)
(defadvice undo-tree-visualizer-mode (after undo-tree-face activate)
  (buffer-face-mode))

常用到使用方法:

C-x u 进入 undo-tree-visualizer-mode ,

p n   上下移动,

b f    在分支左右切换,

t 显示时间戳,选定需要的状态后,

q 退出。

原文地址:https://www.cnblogs.com/pylemon/p/2339399.html