Configure tramp to find correct remote-path when logging-in on sting.

This commit is contained in:
2021-03-17 16:23:56 -03:00
parent 96b26fd634
commit 0a35af94d3
2 changed files with 14 additions and 1 deletions

View File

@@ -148,13 +148,16 @@
(use-package org-ref) (use-package org-ref)
(load "~/.emacs.d/elisp/org-setup.el") (load "~/.emacs.d/elisp/org-setup.el")
;; Ivy related stuff ;;Ivy related stuff
(use-package ivy) (use-package ivy)
(use-package ivy-bibtex) (use-package ivy-bibtex)
(use-package counsel) (use-package counsel)
(use-package swiper) (use-package swiper)
(load "~/.emacs.d/elisp/ivy-setup.el") (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/outline-keymap.el")
(load "~/.emacs.d/elisp/bibtex-setup.el") (load "~/.emacs.d/elisp/bibtex-setup.el")
(load "~/.emacs.d/elisp/keypad.el") (load "~/.emacs.d/elisp/keypad.el")

10
elisp/tramp-setup.el Normal file
View File

@@ -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)