Skip to content

Instantly share code, notes, and snippets.

@joelmccracken
Created September 22, 2012 16:25
Show Gist options
  • Save joelmccracken/3766662 to your computer and use it in GitHub Desktop.
Save joelmccracken/3766662 to your computer and use it in GitHub Desktop.
(defun write-file-no-msg (filename)
"write current buffer without causing a message to whatever"
(let ((write-proc (start-process-shell-command "silent-write-file" "*silent-write-file*"
(format "cat > %s" filename))))
(process-send-string write-proc (buffer-string))
(process-send-eof write-proc)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment