Giter Site home page Giter Site logo

helm-backup's Introduction

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 completing-read 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)
  • s (emacs library)
  • (optionally) helm, ivy or any other library that uses completing-read

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.

You can customize several configuration options, do :

M-x customize-group RET helm-backup

It's possible to remove all backups of a file by calling, from the buffer where your file is open, helm-backup-remove-file-backups.

Tests

First you need to install cask :

curl -fsSkL https://raw.github.com/cask/cask/master/go | python

Add cask to your path :

export PATH=$PATH:/home/YOUR_USERNAME/.cask/bin

Download dependencies using cask :

make downloads

Run tests :

make test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.