(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
'(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
;;'(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,