Skip to content

Backup all file changes in emacs through git and retrieve them using helm

Notifications You must be signed in to change notification settings

michael-heerdegen/helm-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm-backup Build Status MELPA

This project aims to create a backup system for emacs using both power of git to store changes and power of helm to fetch backups easily.

Features

  • Diff view to revert changes easily
  • Open backup in buffer or replace current one through helm
  • Exclude files/folders from backup
  • Customize storage path

Getting started

Dependencies

  • git (>= 1.5) (binary)
  • helm (emacs library)
  • s (emacs library)

For emacs prior version 24.3 :

  • cl-lib (emacs library)

Install

You can use melpa:

M-x package-install RET helm-backup

or you can pull it from here and you have to add in your emacs config :

(add-to-list 'load-path "/path/to/helm-backup-directory")
(require 'helm-backup)

If you want to store every change each time you save a file add :

(add-hook 'after-save-hook 'helm-backup-versioning)

or

M-x customize-variable RET after-save-hook RET [INS] helm-backup-versioning

Usage

You can map helm-backup command to key to retrieve easily backup as follow :

(global-set-key (kbd "C-c b")   'helm-backup)

After that, open a file, press C-c b and a list of backup will be displayed if any, you can choose to see backup in new buffer (default) or override current buffer with backup.

About

Backup all file changes in emacs through git and retrieve them using helm

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Emacs Lisp 93.0%
  • Gherkin 4.5%
  • Makefile 2.5%