branch: externals/vundo commit 549efe15c313162098f29987c9236ff324358d99 Author: Yuan Fu <caso...@gmail.com> Commit: Yuan Fu <caso...@gmail.com>
UI change: default to ASCII and more * vundo.el (vundo-ascii-symbols): change + to ` and * to x. (vundo-glyph-alist): Use ASCII by default. --- vundo.el | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/vundo.el b/vundo.el index acd56deedc..05fd2cf6fe 100644 --- a/vundo.el +++ b/vundo.el @@ -104,12 +104,12 @@ (const :tag "Top" top))) (defconst vundo-ascii-symbols - '((selected-node . ?*) + '((selected-node . ?x) (node . ?o) (horizontal-stem . ?-) (vertical-stem . ?|) (branch . ?|) - (last-branch . ?+)) + (last-branch . ?`)) "ASCII symbols to draw vundo tree.") (defconst vundo-unicode-symbols @@ -121,7 +121,7 @@ (last-branch . ?└)) "Unicode symbols to draw vundo tree.") -(defcustom vundo-glyph-alist vundo-unicode-symbols +(defcustom vundo-glyph-alist vundo-ascii-symbols "Alist mapping tree parts to characters used to draw a tree. Keys are names for different parts of a tree, values are characters for that part. Possible keys include @@ -138,7 +138,17 @@ in a tree like ○──○──○ │ └──● ├──○ - └──○" + └──○ + +By default, the tree is drawn with ASCII characters like this: + + o--o--o + | `--x + |--o + `--o + +Set this variable to ‘vundo-unicode-symbols’ to use Unicode +characters." :type `(alist :tag "Translation alist" :key-type (symbol :tag "Part of tree") :value-type (character :tag "Draw using")