all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tramp too slow to be usefull
@ 2017-08-01 16:09 Thierry Leurent
  2017-08-02  6:54 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Thierry Leurent @ 2017-08-01 16:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I'm trying to use tramp but it's very slow even I work with a local file owned 
by root.  
After asking to the "friend" Google, I don't find any solution.

I use emacs 25 on Linux Testing.

You can see my tramp configuration file.
(use-package tramp
  :defer t
  :config
  (progn
    (with-eval-after-load 'tramp-cache
      (setq tramp-persistency-file-name "~/.emacs.d/backup_and_other_stuffs/
tramp$"))
    (setq tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root"))
          ;; use the settings in ~/.ssh/config instead of Tramp's
	  tramp-verbose 9
	  tramp-default-method "ssh"
	  tramp-ssh-controlmaster-options
	  (concat "-o ControlPath=/tmp/tramp.%%r@%%h:%%p "
		  "-o ControlMaster=auto "
		  "-o ControlPersist=no")
          tramp-use-ssh-controlmaster-options nil
          backup-enable-predicate
          (lambda (name)
            (and (normal-backup-enable-predicate name)
                 (not (let ((method (file-remote-p name 'method)))
                        (when (stringp method)
                          (member method '("su" "sudo"))))))))

    (use-package tramp-sh
      :config
      (progn
        (add-to-list 'tramp-remote-path "/usr/local/sbin")
        (add-to-list 'tramp-remote-path "/var/www/")
        (add-to-list 'tramp-remote-path "~/bin"))))) 


Thnaks for your help.

Regards, 

-----
Thierry Leurent



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-21 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-01 16:09 Tramp too slow to be usefull Thierry Leurent
2017-08-02  6:54 ` Michael Albinus
2017-08-21 20:44   ` Thierry Leurent

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.