From c8120d3b42b90ab1e89f1bd1e282ebf1f4781f1d Mon Sep 17 00:00:00 2001 From: noa Date: Mon, 11 Nov 2024 12:02:50 +0800 Subject: Simplify undo --- emacs/init.el | 3 +++ 1 file changed, 3 insertions(+) (limited to 'emacs') 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. -- cgit 1.4.1-2-gfad0