 
 ;;; Code:
 
-(defcustom prettier-command "prettier"
+(defcustom prettier-js--prettier-command "prettier"
   "The 'prettier' command."
   :type 'string
   :group 'prettier)
 
-(defcustom prettier-args '()
-  "List of args to send to prettier command"
+(defcustom prettier-js--prettier-args '()
+  "List of args to send to prettier command."
   :type 'list
   :group 'prettier)
 
-(defcustom prettier-target-mode
+(defcustom prettier-js--prettier-target-mode
   "js-mode"
   "Name of the major mode to be used by 'prettier-before-save'."
   :type 'string
   :group 'prettier)
 
-(defcustom prettier-show-errors 'buffer
+(defcustom prettier-js--prettier-show-errors 'buffer
     "Where to display prettier error output.
 It can either be displayed in its own buffer, in the echo area, or not at all.
 Please note that Emacs outputs to the echo area when writing

           (delete-region (progn (forward-visible-line 0) (point))
                                                  (progn (forward-visible-line arg) (point))))))

(defun prettier--apply-rcs-patch (patch-buffer)
  "Apply an RCS-formatted diff from PATCH-BUFFER to the current buffer."
  (let ((target-buffer (current-buffer))
        ;; Relative offset between buffer line numbers and line numbers

                    (insert text)))))
             ((equal action "d")
              (with-current-buffer target-buffer
                (prettier-js--goto-line (- from line-offset))
                (setq line-offset (+ line-offset len))
                (prettier-js--delete-whole-line len)))
             (t
              (error "Invalid rcs patch or internal error in prettier-js--apply-rcs-patch")))))))))

(defun prettier-js--process-errors (filename tmpfile errorfile errbuf)
  "Process errors for FILENAME, using a TMPFILE an ERRORFILE and display the output in ERRBUF."
  (with-current-buffer errbuf
    (if (eq prettier-js--prettier-show-errors 'echo)
        (progn
          (message "%s" (buffer-string))
          (prettier-js--kill-error-buffer errbuf))
      (insert-file-contents errorfile nil nil nil)
      ;; Convert the prettier stderr to something understood by the compilation mode.
      (goto-char (point-min))
