help-gnu-emacs
[Top][All Lists]
Advanced

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

Tramp too slow to be usefull


From: Thierry Leurent
Subject: Tramp too slow to be usefull
Date: Tue, 01 Aug 2017 18:09:20 +0200
User-agent: KMail/5.2.3 (Linux/4.11.0-1-amd64; KDE/5.28.0; x86_64; ; )

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



reply via email to

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