 (defvar intero-mode-map (make-sparse-keymap)
   "Intero minor mode's map.")
 
-(defvar intero-lighter " Intero"
+(defvar-local intero-lighter " Intero"
   "Lighter for the intero minor mode.")
-(make-variable-buffer-local 'intero-lighter)
 
 ;;;###autoload
 (define-minor-mode intero-mode

               (flycheck-mode)
               (add-to-list (make-local-variable 'company-backends) 'company-intero)
               (company-mode)
               (set (make-local-variable 'eldoc-documentation-function) 'eldoc-intero))
      (message "Intero mode disabled."))))

(define-key intero-mode-map (kbd "C-c C-t") 'intero-type-at)

  (when (and (not (eq major-mode 'fundamental-mode))
             (eq this-command 'intero-repl-mode))
    (error "You probably meant to run: M-x intero-repl"))
  (setq-local comint-prompt-regexp intero-prompt-regexp)
  (add-hook 'comint-output-filter-functions
            'intero-linkify-process-output
            t)
  (setq-local comint-prompt-read-only t))

(defun intero-repl-mode-start (backend-buffer targets prompt-options)
  "Start the process for the repl in the current buffer.
