mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-22 03:00:05 +00:00
Disable company-mode in eshell on remote hosts
This commit is contained in:
parent
3e0d92d61b
commit
cae004b432
1 changed files with 8 additions and 0 deletions
|
@ -1472,6 +1472,14 @@ paths and not worry about being bounced back to my local filesystem.
|
|||
(tramp-file-name-hop v))))
|
||||
(eshell/cd directory)))
|
||||
#+end_src
|
||||
*** Disable company autocompletion on remote hosts
|
||||
#+begin_src emacs-lisp
|
||||
(defun my/toggle-shell-autocomplete ()
|
||||
(when (fboundp 'company-mode)
|
||||
(company-mode (if (file-remote-p default-directory) -1 1))))
|
||||
|
||||
(add-hook! 'eshell-directory-change-hook #'my/toggle-shell-autocomplete)
|
||||
#+end_src
|
||||
** Background Processes
|
||||
Manage background services
|
||||
#+begin_src emacs-lisp
|
||||
|
|
Loading…
Reference in a new issue