   (shackle '((shell-mode
               :action seanmacs/display-buffer-same)
              ("^\\*shell"
-              :action seanmacs/display-buffer-same)))
-  (add-hook 'shell-mode-hook #'disable-completions-tramp))
+              :action seanmacs/display-buffer-same))))
 
 (provide 'seanmacs-shell)
 ;;; seanmacs-shell.el ends here

;; Configurations for shell and eshell

;;; Code:

(defun disable-completions-tramp ()
  "Disable completions if buffer is remote."
  (when (file-remote-p default-directory) (company-mode -1)))

(defun async-shell-buffer (program &rest args)
  "Run PROGRAM with ARGS async."

      (erase-buffer)
      (eshell-send-input)))

  (add-hook 'eshell-mode-hook
            (lambda ()
              ;; Needs to be ran inside the hook since eshell-mode-map is
