   (when (and (not (eq major-mode 'fundamental-mode))
              (eq this-command 'intero-repl-mode))
     (error "You probably meant to run: M-x intero-repl"))
-  (set (make-local-variable 'comint-prompt-regexp) intero-prompt-regexp)
+  (setq-local comint-prompt-regexp intero-prompt-regexp)
   (add-hook 'comint-output-filter-functions
             'intero-linkify-process-output
             t)
-  (set (make-local-variable 'comint-prompt-read-only) 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.

(defvar intero-mode-map (make-sparse-keymap)
  "Intero minor mode's map.")

(defvar 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)
               (setq-local eldoc-documentation-function 'eldoc-intero))
      (message "Intero mode disabled."))))

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