 
 \\{sm/julia-mode-map}"
     (set (make-local-variable 'comint-prompt-read-only) t)
-    (set (make-local-variable 'comint-input-sender) 'sm/comint-print-and-send)
+    (set (make-local-variable 'comint-input-sender) 'sm/comint-echo-and-send)
 
     ;; The default value of `electric-pair-default-skip-self' doesn't seem to
     ;; work well with this derived comint. I end up with an extra closing

          (let* ((path (expand-file-name (concat dir project-file)))
                 (cmd (format "using Pkg; Pkg.activate(\"%s\"); Pkg.instantiate()"
                              (sm/path-localname path))))
            (sm/comint-print-and-send (sm/julia-process) cmd))
        (message "Not in Julia project"))))

  (defun sm/julia-cd (dir)

    "Major mode for running iex."

    (set (make-local-variable 'comint-prompt-read-only) t)
    (set (make-local-variable 'comint-input-sender) 'sm/comint-echo-and-send))

  (defun sm/iex-start-process ()
    "Start a iex process with an associated buffer, and enable `sm/iex-mode'."
