From e55134fae88a335c7f28b299fe234e3ab52b4c23 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 8 Jan 2020 15:26:37 +0900 Subject: [PATCH] Add undo-fu keybind --- emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.el b/emacs.el index 9424397..c4f0c5a 100644 --- a/emacs.el +++ b/emacs.el @@ -441,6 +441,11 @@ found, otherwise returns nil." (global-set-key (kbd "C-s") 'isearch-forward-regexp) (global-set-key (kbd "C-r") 'isearch-backward-regexp) +(when (fboundp 'undo-fu-only-undo) + (global-set-key (kbd "C-_") 'undo-fu-only-undo)) +(when (fboundp 'undo-fu-only-redo) + (global-set-key (kbd "C-M-_") 'undo-fu-only-redo)) + (require 'page-ext nil t) (when (safe-require-or-eval 'page-break-lines)