tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tell me what to stick in .emacs


From: 積丹尼 Dan Jacobson
Subject: tell me what to stick in .emacs
Date: Mon, 13 Mar 2017 06:04:43 +0800

I put
(eval-after-load "tramp"
  '(progn
     (add-to-list 'tramp-remote-process-environment "TMPDIR=/sdcard/temp")
     (add-to-list 'tramp-remote-path 'tramp-own-remote-path)
     (add-to-list 'tramp-remote-path "/system/xbin")
     (add-to-list 'tramp-connection-properties
                  (list (regexp-quote "192.168.12.66") "remote-shell" 
"sh"));but who knows how to say for adb?
     (defun tramp-adb-get-ls-command (vec)
       (with-tramp-connection-property vec "ls"
         (tramp-message vec 5 "Finding a suitable `ls' command")
         (if (tramp-adb-send-command-and-check vec "ls --color=never -al 
/dev/null")
             ;; On CyanogenMod based system BusyBox is used and "ls" output
             ;; coloring is enabled by default.  So we try to disable it
             ;; when possible.
             "ls"
           "ls")))))

(defun jidanni-connect-remote ()
  (interactive)
  '(progn
     (require 'tramp)
     (setq tramp-verbose 6)
     (dired "/adb::/sdcard/")))
;;(dired "/ssh:address@hidden:/sdcard/")); yes even if not root
in .emacs and of course M-x jidanni-connect-remote does not do anything.
Not even set tramp-verbose to 6.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]