From 0a35af94d346b00b865f062c5dfd1ee95eb69867 Mon Sep 17 00:00:00 2001 From: mprodges Date: Wed, 17 Mar 2021 16:23:56 -0300 Subject: [PATCH] Configure tramp to find correct remote-path when logging-in on sting. --- elisp/extras.el | 5 ++++- elisp/tramp-setup.el | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 elisp/tramp-setup.el diff --git a/elisp/extras.el b/elisp/extras.el index 19ec749..3b2a995 100644 --- a/elisp/extras.el +++ b/elisp/extras.el @@ -148,13 +148,16 @@ (use-package org-ref) (load "~/.emacs.d/elisp/org-setup.el") -;; Ivy related stuff +;;Ivy related stuff (use-package ivy) (use-package ivy-bibtex) (use-package counsel) (use-package swiper) (load "~/.emacs.d/elisp/ivy-setup.el") +;;TRAMP +(load "~/.emacs.d/elisp/tramp-setup.el") + (load "~/.emacs.d/elisp/outline-keymap.el") (load "~/.emacs.d/elisp/bibtex-setup.el") (load "~/.emacs.d/elisp/keypad.el") diff --git a/elisp/tramp-setup.el b/elisp/tramp-setup.el new file mode 100644 index 0000000..21ca6d7 --- /dev/null +++ b/elisp/tramp-setup.el @@ -0,0 +1,10 @@ +(setq sting-local-path "/run/setuid-programs:/home/mprodrigues/.config/guix/current/bin:/home/mprodrigues/.guix-profile/bin:/run/current-system/profile/bin:/run/current-system/profile/sbin") + +(connection-local-set-profile-variables 'sting-remote-path + '((tramp-remote-path . (tramp-own-remote-path + sting-local-path + tramp-default-remote-path)))) + +(connection-local-set-profiles + '(:application tramp :user "mprodrigues" :machine "78.141.218.197") + 'sting-remote-path)