fix tramp master
authorIan Kelling <iank@fsf.org>
Wed, 19 Mar 2025 19:23:34 +0000 (15:23 -0400)
committerIan Kelling <iank@fsf.org>
Wed, 19 Mar 2025 19:23:34 +0000 (15:23 -0400)
init.el

diff --git a/init.el b/init.el
index 8ce366b81fed25f944ff3f367fee300808cf075b..f8c0feec75df0c922e86da0983173907c736bf92 100644 (file)
--- a/init.el
+++ b/init.el
 (setq package-archives
       (quote
        (("gnu" . "https://elpa.gnu.org/packages/")
+        ("nongnu" . "https://elpa.nongnu.org/nongnu/")
         ("MELPA" . "https://melpa.org/packages/"))))
 
 ;;(add-to-list 'package-archives
@@ -853,7 +854,6 @@ A non-nil CURRENT-ONLY argument means save only current buffer."
  '(css-indent-offset 2)
  '(sh-here-document-word "'EOF'")
  '(outline-minor-mode-prefix "\ 3\ 1")
- '(tramp-default-method "ssh")
  ;; change last thing from gnu.
  ;; notably this avoids brace indent after if, and 4 space indent
  ;; for emacs itself, use
@@ -1042,12 +1042,28 @@ A non-nil CURRENT-ONLY argument means save only current buffer."
 ;;'(header-line ((t (:background "default" :foreground "default" :overline nil :underline nil))))
 ;; '(region ((t nil))))
 
-
-;; from tramp manual, use the same ssh controlmaster. I was having problems with
-;; tramp prompting me for a username and pass.
-(customize-set-variable 'tramp-use-ssh-controlmaster-options nil)
+;;; tramp debugging
+;; emacs -Q
+;; (setq tramp-verbose 10)
+;; do the thing that fails, then open the very big buffer. I figured out somewhat randomly that it was failing to find readlink by doing type -P readlink, which fails in dash with: -P: not found
+;; readlink is /bin/readlink
+;; offending function: tramp-find-executable
+;; Solved by installing the git version of tramp
+;; git clone iank@git.savannah.gnu.org:/srv/git/tramp.git
+;; cd tramp
+;; autoconf
+;; ./configure
+;; make
+;; sudo make install # ignore error about loaddefs.
+
+;; alternatively, I could have used the sshx method and ditched the dash shell with:
+;; (add-to-list 'tramp-connection-properties
+;;              (list nil
+;;                    "remote-shell" "/bin/bash"))
+;;(customize-set-variable 'tramp-encoding-shell "/bin/bash")
 
 (setq
+
  ;; avoid this stupid prompt when doing sudo-edit
  ;; Save auth info to file ~/.authinfo? [y/n/N/e/?]
  ;; which doesn't actually use the default N by pressing enter,