Closed manuel-uberti closed 4 years ago
Hi,
first of all thanks for this package. I'm using the latest version, having set it up like this in my Emacs configuration:
(use-package native-complete :straight (:host github :repo "CeleritasCelery/emacs-native-shell-complete") :ghook ('shell-mode-hook #'mu--setup-native-complete) :config (defun mu--setup-native-complete () (add-to-list 'completion-at-point-functions #'native-complete-at-point) (after! shell (native-complete-setup-bash))))
:ghook comes from general.el and it's basically another way to add a hook to shell-mode-hook.
:ghook
shell-mode-hook
If I open shell-mode and immediately run M-: (native-complete-get-completion-style) RET I get bash.
shell-mode
(native-complete-get-completion-style)
bash
However, when I hit write cd .em and hit TAB, I get:
cd .em
manuel@hathaway:~$ cd .emacs.d
I was expecting:
manuel@hathaway:~$ cd .emacs.d/
Furthermore, this is how I set up shell-mode:
(setq explicit-bash-args '("-i") explicit-shell-file-name "/bin/bash" shell-command-prompt-show-cwd t shell-file-name "/bin/bash") (defun mu--inside-emacs (env) (cons "INSIDE_EMACS" env)) (advice-add #'comint-term-environment :filter-return #'mu--inside-emacs)
Am I missing something? Or is this the expected behaviour?
I removed (add-to-list 'completion-at-point-functions #'native-complete-at-point) and left only (native-complete-setup-bash) and it works as expected.
(add-to-list 'completion-at-point-functions #'native-complete-at-point)
(native-complete-setup-bash)
Sorry for the noise, consider this closed.
Hi,
first of all thanks for this package. I'm using the latest version, having set it up like this in my Emacs configuration:
:ghook
comes from general.el and it's basically another way to add a hook toshell-mode-hook
.If I open
shell-mode
and immediately run M-:(native-complete-get-completion-style)
RET I getbash
.However, when I hit write
cd .em
and hit TAB, I get:I was expecting:
Furthermore, this is how I set up
shell-mode
:Am I missing something? Or is this the expected behaviour?