diff options
author | noa | 2024-11-11 12:02:50 +0800 |
---|---|---|
committer | noa | 2024-11-11 12:02:50 +0800 |
commit | c8120d3b42b90ab1e89f1bd1e282ebf1f4781f1d (patch) | |
tree | bc03997459442971fb488a003623db33ac9f4d26 | |
parent | 139a3ab6b64c982730dbd0a8f5069e35c959507e (diff) |
Simplify undo
-rw-r--r-- | emacs/init.el | 3 |
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. |