humitos/emacs-configuration

Versioning files outside VCS

Opened this issue · 2 comments

I should take a look at it seems look interesting: https://github.com/antham/helm-backup

Take a look at the issues and PR's since they are still working on this.

Two things that I would like to have here are:

  1. do not open a new emacs windows with the ediff and stuffs. It's very annoying that
  2. enable this 'auto save feature' only for those files outside a git project

I'm using this function to edit files as SUDO and save a backup with helm-backup

E() {
    # alias E='SUDO_EDITOR="emacsclient --alternate-editor emacs" sudoedit'
    emacsclient --eval "(find-file (concat \"/sudo::\" (expand-file-name \"$1\")))"
}