Last active
April 23, 2016 07:43
-
-
Save Costava/3095cd85b79a55db81e4e5969261983c to your computer and use it in GitHub Desktop.
In Emacs, automatically highlight the changes since the last save.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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