tweak(default): add binding for undo-tree

This also makes the check for the presence of vundo consistent with the
rest of the file by using modulep! instead of fboundp.
This commit is contained in:
Tim Ruffing 2023-12-01 19:15:36 +01:00 committed by GitHub
parent 29b19412f6
commit a89d4b7df5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -760,8 +760,9 @@
((modulep! :completion helm) #'swiper-isearch-thing-at-point)) ((modulep! :completion helm) #'swiper-isearch-thing-at-point))
:desc "Dictionary" "t" #'+lookup/dictionary-definition :desc "Dictionary" "t" #'+lookup/dictionary-definition
:desc "Thesaurus" "T" #'+lookup/synonyms :desc "Thesaurus" "T" #'+lookup/synonyms
(:when (fboundp 'vundo) :desc "Undo history" "u"
:desc "Undo history" "u" #'vundo)) (cond ((modulep! :emacs undo +tree) #'undo-tree-visualize)
((modulep! :emacs undo) #'vundo)))
;;; <leader> t --- toggle ;;; <leader> t --- toggle
(:prefix-map ("t" . "toggle") (:prefix-map ("t" . "toggle")