Skip to content

Instantly share code, notes, and snippets.

@Peregring-lk
Peregring-lk / emacs-conf-auto-git-pull.el
Created December 10, 2018 03:33
Emacs function to update emacs conf from git repo at startup
;; This code assume that your emacs conf (.emacs.d) is itself a git repo.
;; This function check at startup if there's updates available, applying
;; `git pull` in that case, and reloading your config (assumed to be in
;; .emacs.d/init.el).
;;
;; Useful when you have multiple machines with a same emacs configuration
;; that you want to keep synchronized (assuming of course that your emacs
;; repo is in some git server).
;;
;; It is also assumed that you don't need to write a password or passphrase