From 92d5c67e8ecd13e0246617d96e67ee4db4b01b9d Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 8 Feb 2020 17:39:10 +0100 Subject: [PATCH] Fixed issue with `tramp-methods is void' error --- org/config/spacemacs.org | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/org/config/spacemacs.org b/org/config/spacemacs.org index a380293..637cdd2 100644 --- a/org/config/spacemacs.org +++ b/org/config/spacemacs.org @@ -1278,6 +1278,7 @@ (require 'package) (require 'ox-latex) (require 'ox-publish) + (require 'tramp) #+END_SRC I also want to load what’s in ~icons-in-terminal~ so I can use them in various @@ -2918,6 +2919,13 @@ :CUSTOM_ID: h-fb5284ed-9862-4ba5-9d92-78b466ab65f8 :END: yadm is the utility I use for managing my dotfiles, and it is a wrapper + In order to manage my dotfiles, I use the following shortcut to launch Magit + Status for yadm: + #+BEGIN_SRC emacs-lisp + (spacemacs/declare-prefix "oy" "yadm status") + (spacemacs/set-leader-keys "oy" (lambda () (interactive) (magit-status "/yadm::"))) + #+END_SRC + around ~git~. Logically, it means Magit could theoretically manage my yadm repo. And it is indeed possible, according to [[https://github.com/TheLocehiliosan/yadm/blob/master/yadm.md][this page]] using TRAMP. I just need to add the following code snippet: @@ -2926,18 +2934,12 @@ '("yadm" (tramp-login-program "yadm") (tramp-login-args (("enter"))) - (tramp-login-env (("SHELL") ("/bin/sh"))) + (tramp-login-env (("SHELL") + ("/bin/sh"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-args ("-c")))) #+END_SRC - In order to manage my dotfiles, I use the following shortcut to launch Magit - Status for yadm: - #+BEGIN_SRC emacs-lisp - (spacemacs/declare-prefix "oy" "yadm status") - (spacemacs/set-leader-keys "oy" (lambda () (interactive) (magit-status "/yadm::"))) - #+END_SRC - * Footnotes :PROPERTIES: :CUSTOM_ID: h-a471c99d-e731-4196-9e69-beb0359962bd