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-_"))
crocefisso's user avatar
  • 1,274
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 (...
dalanicolai's user avatar
  • 7,785
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 &...
Herman's user avatar
  • 57

Only top scored, non community-wiki answers of a minimum length are eligible