From 1378aaead0c1cc60e634972931d4a87b67fdca97 Mon Sep 17 00:00:00 2001 From: jao Date: Tue, 11 Jan 2022 23:48:28 +0000 Subject: completion nits (and why eshell's capf wasn't working) --- init.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index bd6fb75..43ef0a0 100644 --- a/init.org +++ b/init.org @@ -1940,14 +1940,15 @@ (when (and c (listp c)) (append c '(:exclusive no))))) - (defun jao-eshell--add-bash-completion () - (setq completion-at-point-functions - '(jao-eshell-completion-capf - pcomplete-completions-at-point t))) + (defun jao-eshell--set-up-completion () + (setq-local completion-styles '(basic partial-completion) + completion-at-point-functions + '(jao-eshell-completion-capf + pcomplete-completions-at-point t))) (use-package bash-completion :ensure t - :hook (eshell-mode . jao-eshell--add-bash-completion)) + :hook (eshell-mode . jao-eshell--set-up-completion)) #+end_src ***** History #+BEGIN_SRC emacs-lisp -- cgit v1.2.3