summaryrefslogtreecommitdiffhomepage
path: root/init.org
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-01-11 23:48:28 +0000
committerjao <jao@gnu.org>2022-01-11 23:48:28 +0000
commit1378aaead0c1cc60e634972931d4a87b67fdca97 (patch)
tree3fc7a3e9f4dab90138ed894146aa4ea377acba85 /init.org
parent3bf6877c102f125b9df4c5ccc4be93917188160d (diff)
downloadelibs-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.org11
1 files changed, 6 insertions, 5 deletions
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