add undo-tree

This commit is contained in:
Joe Ardent 2025-01-04 11:35:02 -08:00
parent be00557604
commit 29b9be98bf
3 changed files with 28 additions and 2 deletions

View file

@ -63,6 +63,7 @@
- [[#the-nebkor-essentialsel-section-for-simpleel-changes][The =nebkor-essentials.el= section for ~simple.el~ changes]] - [[#the-nebkor-essentialsel-section-for-simpleel-changes][The =nebkor-essentials.el= section for ~simple.el~ changes]]
- [[#the-nebkor-essentialsel-section-for-better-help-helpful][The =nebkor-essentials.el= section for better help (~helpful~)]] - [[#the-nebkor-essentialsel-section-for-better-help-helpful][The =nebkor-essentials.el= section for better help (~helpful~)]]
- [[#the-nebkor-essentials-section-for-indent-tools][The =nebkor-essentials= section for ~indent-tools~]] - [[#the-nebkor-essentials-section-for-indent-tools][The =nebkor-essentials= section for ~indent-tools~]]
- [[#the-nebkor-essentials-section-for-undo-tree][The =nebkor-essentials= section for ~undo-tree~]]
- [[#the-nebkor-essentials-section-for-fancy-keyboard-shortcuts-key-chord][The =nebkor-essentials= section for fancy keyboard shortcuts (~key-chord~)]] - [[#the-nebkor-essentials-section-for-fancy-keyboard-shortcuts-key-chord][The =nebkor-essentials= section for fancy keyboard shortcuts (~key-chord~)]]
- [[#the-nebkor-essentials-section-for-which-key][The =nebkor-essentials= section for ~which-key~]] - [[#the-nebkor-essentials-section-for-which-key][The =nebkor-essentials= section for ~which-key~]]
- [[#the-nebkor-essentials-section-for-blackout-and-other-random-shit][The =nebkor-essentials= section for blackout and other random shit]] - [[#the-nebkor-essentials-section-for-blackout-and-other-random-shit][The =nebkor-essentials= section for blackout and other random shit]]
@ -901,7 +902,7 @@ Another section defines some complementary functionality
:default-weight regular :default-weight regular
:default-slant normal :default-slant normal
:default-width normal :default-width normal
:default-height 150 :default-height 130
:fixed-pitch-family nil ; falls back to :default-family :fixed-pitch-family nil ; falls back to :default-family
:fixed-pitch-weight nil ; falls back to :default-weight :fixed-pitch-weight nil ; falls back to :default-weight
@ -1496,6 +1497,23 @@ Emacs provides with default, and I find myself using Helpful only as an Avy acti
:ensure t) :ensure t)
#+end_src #+end_src
** The =nebkor-essentials= section for ~undo-tree~
:PROPERTIES:
:ID: a980ab55-cc66-4e5a-99d4-cff449657e1c
:END:
Open a nodal history graph in a new window to navigate all previous histories with branches.
#+begin_src emacs-lisp :tangle "nebkor-modules/nebkor-essentials.el"
(use-package undo-tree
:ensure t
:init
(global-undo-tree-mode)
(blackout 'undo-tree-mode)
:bind (("C-z" . undo)
("C-S-z" . redo)))
#+end_src
** The =nebkor-essentials= section for fancy keyboard shortcuts (~key-chord~) ** The =nebkor-essentials= section for fancy keyboard shortcuts (~key-chord~)
:PROPERTIES: :PROPERTIES:
:ID: 01JGD1AZDG00072YN0C6Y1FFEG :ID: 01JGD1AZDG00072YN0C6Y1FFEG

View file

@ -208,6 +208,14 @@ If the region is selected, retain the original behaviour, otherwise call
(use-package indent-tools (use-package indent-tools
:ensure t) :ensure t)
(use-package undo-tree
:ensure t
:init
(global-undo-tree-mode)
(blackout 'undo-tree-mode)
:bind (("C-z" . undo)
("C-S-z" . redo)))
(use-package key-chord (use-package key-chord
:ensure t :ensure t
:config :config

View file

@ -126,7 +126,7 @@
:default-weight regular :default-weight regular
:default-slant normal :default-slant normal
:default-width normal :default-width normal
:default-height 150 :default-height 130
:fixed-pitch-family nil ; falls back to :default-family :fixed-pitch-family nil ; falls back to :default-family
:fixed-pitch-weight nil ; falls back to :default-weight :fixed-pitch-weight nil ; falls back to :default-weight