             ;; we defer setting that until after.
             (cd (intero-extend-path-by-buffer-host root initial-buffer))
             (intero-repl-mode) ; wipes buffer-local variables
+            (intero-inherit-local-variables initial-buffer)
             (setq intero-buffer-host (intero-buffer-host initial-buffer))
             (intero-repl-mode-start backend-buffer
                                     (buffer-local-value 'intero-targets backend-buffer)


(defun intero-get-targets ()
  "Get all available targets."
  (with-temp-buffer
    (cl-case (intero-call-process intero-stack-executable nil (current-buffer) t "ide" "targets")
      (0
       (cl-remove-if-not

  (if intero-project-root
      intero-project-root
    (setq intero-project-root
          (intero-with-temp-buffer
            (cl-case (save-excursion
                       (intero-call-process intero-stack-executable nil
                                            (current-buffer)
