Created
August 27, 2013 21:59
-
-
Save re5et/6359724 to your computer and use it in GitHub Desktop.
Save a buffer, even if it hasn't been modified. I use this to touch / save a buffer when I want a test to run, etc.
This file contains hidden or 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
(global-set-key (kbd "C-x C-s") 'force-save) | |
(defun force-save () | |
(interactive) | |
(not-modified 1) | |
(save-buffer)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment