Skip to content

Instantly share code, notes, and snippets.

@Costava
Last active April 23, 2016 07:43
Show Gist options
  • Save Costava/3095cd85b79a55db81e4e5969261983c to your computer and use it in GitHub Desktop.
Save Costava/3095cd85b79a55db81e4e5969261983c to your computer and use it in GitHub Desktop.
In Emacs, automatically highlight the changes since the last save.
; Paste into your Emacs initialization file (.el)
(add-hook 'after-save-hook 'highlight-changes-since-save)
(defun highlight-changes-since-save()
(progn
(highlight-changes-mode 0)
(highlight-changes-mode 1)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment