summary refs log tree commit diff
path: root/emacs
diff options
context:
space:
mode:
authornoa2024-11-11 12:02:50 +0800
committernoa2024-11-11 12:02:50 +0800
commitc8120d3b42b90ab1e89f1bd1e282ebf1f4781f1d (patch)
treebc03997459442971fb488a003623db33ac9f4d26 /emacs
parent139a3ab6b64c982730dbd0a8f5069e35c959507e (diff)
Simplify undo
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
index cea6710..8c7ea70 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -392,6 +392,9 @@ The misspelled word is taken from OVERLAY.  WORD is the corrected word."
 
 ;; My brain is not ready for advanced emacs undo
 (setopt undo-no-redo t)
+(global-unset-key (kbd "C-z"))
+(global-set-key (kbd "C-z") 'undo)
+(global-set-key (kbd "C-S-z") 'undo-redo)
 
 ;; Saving
 ;; Backups are pointless in long emacs sessions, but autosaves are useful.