Hot answers tagged

4

From the documentation If Emacs or the computer crashes, you can recover all the files you were editing from their auto save files with the command M-x recover-session. This first shows you a list of recorded interrupted sessions. Move point to the one you choose, and type C-c C-c. Then recover-session asks about each of the files that were ...


4

Le Wang's backup-walker library facilitates this: traverse incremental diffs between backup versions open backup in traversal mode if the diff seems interesting traverse backups Once a backup is opened, traversing amongst backups is easy using the same keys. the point kept the same as much as possible while traversing backups as ...


2

How about this: (defun revert-to-backup () "Reverts to the latest backup file associated with the current buffer." (interactive) (let ((file (buffer-file-name))) (when file (let ((bak (file-newest-backup (buffer-file-name)))) (if bak (progn (delete-region (point-min) (point-max)) (insert-file-...


2

Instead of dired-omit-mode, add a wrapper to dired-mode-hook that checks dired-directory: (defun my-turn-on-dired-omit-mode () (unless (and auto-save-list-file-prefix (string= dired-directory (concat auto-save-list-file-prefix "*"))) (dired-omit-mode))) (add-hook 'dired-mode-hook #'my-turn-on-dired-omit-mode) ;; (...


1

For that, I use https://github.com/lewang/backup-walker. (autoload 'backup-walker-start "backup-walker" "" t)


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