Fixed missing closing paren. Should be: (add-hook 'eshell-mode-hook #'(lambda () (setq ac-sources '(ac-source-pcomplete)))) Other than that it works like a charm!