Autocompletion for interactive programs in eshell reddit / emacs ---------------------------------------------------------------------- The_Power_That_B · 2022-04-10 08:52 Hi, is there a way to get autocompletion for REPL-like interactive programs like python-repl, ghci or nix-shell using eshell? Whenever I press TAB in such programs I get a ```pcomplete- completions-at-point failed to return valid completion data!``` and even though the key was sent correctly, I don't see the results on the screen e.g. in python-repl when I press tab after ```pri``` I still see ```pri``` but what's actually entered is ```print(```. ---------------------------------------------------------------------- karthink · 2022-04-10 16:20 Are these REPLs or just command line programs? ---------------------------------------------------------------------- TelcDunedain · 2022-04-10 23:23 The two routes I can think of - First route would have less emacs integration, add these repls to the eshell list that launches a different shell. I think this would fix completion. Second route with more emacs integration would be to find a comint configuration. Comint is an emacs mode that can be quite powerful for integrating repls of different kinds. I'll got out on a limb and say there are probably configs on the internet already. ---------------------------------------------------------------------- deaddyfreddy · 2022-04-14 17:01 I prefer the 3rd approach - just "eval" code from the file (which, actually, just sends region to some external process). Many major modes (including sh-mode) do exactly that.