[compleseus] work with tramp (#15639)

make tramp completion work and layout recognize remote project.
This commit is contained in:
thanhvg 2022-07-15 14:26:09 -06:00 committed by GitHub
parent 91af298090
commit 58f021b3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -302,7 +302,7 @@
;; (setq completion-styles '(basic partial-completion orderless) ;; (setq completion-styles '(basic partial-completion orderless)
(setq completion-styles '(orderless) (setq completion-styles '(orderless)
completion-category-defaults nil completion-category-defaults nil
completion-category-overrides '((file (styles . (partial-completion))))))) completion-category-overrides '((file (styles basic partial-completion))))))
(defun compleseus/init-selectrum () (defun compleseus/init-selectrum ()
(use-package selectrum (use-package selectrum

View file

@ -974,7 +974,9 @@ containing the buffer."
nil)) nil))
(project (completing-read (project (completing-read
"Switch to Project Perspective: " "Switch to Project Perspective: "
projectile-known-projects (if current-project-maybe
(cons current-project-maybe projectile-known-projects)
projectile-known-projects)
nil nil
nil nil
nil nil