Make tramp work correctly with a NixOS VM

The VM is running on a Windows host and I connect from a WSL1 environment to
it. For some reason this required these changes even though I can connect
perfectly fine from my NixOS notebook to other NixOS based systems.
This commit is contained in:
Andreas Zweili 2023-08-24 12:12:13 +02:00
parent b775f32429
commit 831e65ddb1
2 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,9 @@
;; enable mouse support in the terminal
(xterm-mouse-mode 1)
;; For better performance use "ssh" instead of "scp"
(setq tramp-default-method "ssh")
(use-package tramp
:config
(add-to-list 'tramp-remote-path 'tramp-own-remote-path))
;; Prompt when quitting Emacs
(setq confirm-kill-emacs 'yes-or-no-p)

View File

@ -3,6 +3,7 @@
:bind
([f2] . projectile-run-vterm)
:config
(add-to-list 'vterm-tramp-shells '("sshx" "/usr/bin/env bash") '("ssh" "/usr/bin/env bash"))
(setq vterm-kill-buffer-on-exit t
vterm-disable-bold t)
(evil-set-initial-state 'vterm-mode 'emacs))