         (unwind-protect
             (cond ((null output) 'error)
                   ((eq output t) 'noop)
-                  ((let ((tmpfile (make-temp-file "doom_format"))
+                  ((let ((tmpfile (make-temp-file "doom-format"))
                          (patchbuf (get-buffer-create " *doom format patch*"))
                          (coding-system-for-read 'utf-8)
                          (coding-system-for-write 'utf-8))

(defun +format/buffer ()
  "Format the source code in the current buffer."
  (interactive)
  (+format-buffer))

;;;###autoload
(defun +format/region (beg end)

                           (with-current-buffer patchbuf (erase-buffer))
                           (with-temp-file tmpfile (erase-buffer) (insert output))
                           (if (zerop (call-process-region (point-min) (point-max) "diff" nil patchbuf nil "-n" "-" tmpfile))
                               'noop
                             (+format--apply-rcs-patch patchbuf)
                             (list output errput first-diff))))
                     (kill-buffer patchbuf)
                     (delete-file tmpfile))))
          (unless (= 0 (length errput))
            (message "Formatter error output:\n%s" errput)))))))

