diff options
author | jao <jao@gnu.org> | 2022-01-11 23:48:28 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-01-11 23:48:28 +0000 |
commit | 1378aaead0c1cc60e634972931d4a87b67fdca97 (patch) | |
tree | 3fc7a3e9f4dab90138ed894146aa4ea377acba85 /init.org | |
parent | 3bf6877c102f125b9df4c5ccc4be93917188160d (diff) | |
download | elibs-1378aaead0c1cc60e634972931d4a87b67fdca97.tar.gz elibs-1378aaead0c1cc60e634972931d4a87b67fdca97.tar.bz2 |
completion nits (and why eshell's capf wasn't working)
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |