Skip to content

Instantly share code, notes, and snippets.

@faried
Created October 27, 2015 15:57
Show Gist options
  • Save faried/f8265ed76773f2ce337d to your computer and use it in GitHub Desktop.
Save faried/f8265ed76773f2ce337d to your computer and use it in GitHub Desktop.
;; save the buffer when we get input
(defun zenicb-save-buffer-frequently (&rest foo)
(when (buffer-file-name)
(save-excursion
(save-buffer))))
(zenicb-add-hook 'zenicb-message-hook 'zenicb-save-buffer-frequently)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment