I know there are much more complicated ways, but this is fast and easy, and that's how I roll. However, there is a really great upgrade to this called undo-tree which records and visualises your undo history as a branching tree. I did as you suggested, i.e. The package undo-fu, uses Emacs built-in undo functionality to expose both undo and redo. If you have pressed any keys (whether typing characters or just moving the cursor) since your last undo command, there is no need to type C-g before your next undo/redo. Many popular “starter kits” (prelude, purcell, spacemacs) come bundled with undo-tree. By clicking “Sign up for GitHub”, you agree to our terms of service and If you undo, and then do a non-editing command such as C-f, then the next undo will undo the undo, resulting in a redo. with a system that treats undo history It started few days ago. Personal Doom Emacs Configuration Keyboard Shortcuts (DRAFT) by thebba Contains keyboard shortcuts for my personal doom emacs configuration. I'm an Emacs noob, so please be patient with me . Sadly this answer doesn't say anything about the redo command which is C-g C-/. GitHub Gist: instantly share code, notes, and snippets. even auto-enable it. This article says that "Emacs has redo because you can reverse direction while undoing, thereby undoing the undo". Installs smex, a package that improves the use of M-x. (my journey went from vanilla configuration to Spacemacs to Doom Emacs). If you start Emacs from the command line, from the dash, or from a launcher like Synapse or krunner, you can specify the -mm option (short for --maximized) to achieve the same result: emacs -mm The -mm option was first introduced in Emacs 23.2, so this solution is not limited to the latest stable release. conceptually sound and user intuitive. The options I have under the Evil Undo System are: This was originally selected. it's not doing anything because an undo wasn't just done before it. You can think of undo as operating on a stack of operations. How can a user 'redo' with Emacs? system confusing and difficult to use, combined with the power of never I don't know why this answer was accepted when it doesn't even tell you. before Emacs starts discarding By default, Emacs keeps only a few dozen undo entries. I'm using Doom Emacs and have to redo the above into use-package's format and I can't get " elfeed-search-show-entry-pre" to show up as one of the functions when "M-x" is executed. standard undo/redo system to be The comments in the header of redo.el say that it is made for XEmacs. Alone the way, you'll learn quite a bit about emacs history, and computing history. The Doom Emacs Workflows. You will have to undo all the way through your accidental redos and undos before you get to the undos you want, but if you just keep hitting C-/, you will eventually reach the state you want. Now, depending on your internet this ⦠Cancel command is moved from Alt+n to Escape. more intuitive undo/redo system. This is a curiosity take. An added side Beware this has a long standing bug in redo which can randomly fail: @ideasman42 Apparently this is a "non-bug": https://stackoverflow.com/questions/3527142/how-do-you-redo-changes-after-undo-with-emacs/35995664#35995664. https://stackoverflow.com/questions/3527142/how-do-you-redo-changes-after-undo-with-emacs/3527182#3527182. Introduction to project management in Doom with Projectile, file explorer view with Treemacs, and built-in shell with EShell. In most editors, undoing several changes and then accidentally typing a character would leave you 'stranded' with no way to redo what you had undone. ! This. history. However it's possible use Emacs built-in undo to implement a redo command too. so C-g C-_ C-g C-_ is not going in a circle after the first one, it's literally doing nothing. changes. It is [mostly] the work of one developer and caters to his vim-slanted tastes. I'm an Emacs noob, so please be patient with me ð Steps to reproduce: Insert few characters in a buffer. package replaces Emacs' undo system I get the following messages: So in summary the Vanilla undo option gives me the issue as described above. By default, redo in Emacs requires pressing C-g, then undo. It's not. I don't remember changing anything in configuration. Here's the commentary from the file itself: Emacs has a powerful undo system. It takes a little getting used to, but it really does give Emacs a highly flexible and powerful undo/redo mechanism. losing any history. That's just my opinion, but I might be a little biased because I personally use Doom. can lose past states as soon as you For these three reasons, I picked Doom as my configuration kit of choice, that in theory should work for most people, whether or not they choose to use evil-mode. In fact, every state the buffer has ever been in is reachable, if you hit C-g once and then press C-/ enough times. What does this mean?