2
votes
Accepted
How to bind org-agenda-undo to C-z when cua-mode is enabled?
Associate all the commands triggered by C-_ with C-z:
(define-key key-translation-map (kbd "C-z") (kbd "C-_"))
2
votes
How to bind org-agenda-undo to C-z when cua-mode is enabled?
EDIT
As you mention in the comments, the original answer defines the new keybinding globally. To set the keybdinging only in the org-agenda buffer you could use
(with-eval-after-load 'cua-base
(...
1
vote
How to skip undo changes made by a certain function?
The solution was easier than I thought. With the following solution, all changes can be sequentially restored with undo, except those made by fun-that-adds-some-text.
(defun skip-undo (orig-fun &...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
undo × 64undo-tree-mode × 13
spacemacs × 3
buffers × 3
org-mode × 2
key-bindings × 2
evil × 2
yank × 2
kill-ring × 2
overlays × 2
insert × 2
history × 2
buffer-modified × 2
delete-selection-mode × 2
org-agenda × 1
elisp × 1
hooks × 1
emacsclient × 1
yasnippet × 1
functions × 1
text-editing × 1
region × 1
isearch × 1
doom × 1
keyboard-macros × 1