Emacs: Fix slow startup with packages using 'tramp'

master
Pierre Neidhardt 2016-09-23 18:56:24 +05:30
parent deb477658d
commit 4b2ffbeb28
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,7 @@
;; Bookmark file to cache folder.
(setq bookmark-default-file (concat emacs-cache-folder "emacs.bmk"))
;; Bookmark file to cache folder.
;; Recent files.
(setq recentf-save-file (concat emacs-cache-folder "recentf"))
;; Disable autosave features.
@ -346,6 +346,9 @@
;; Sort
(setq sort-fold-case t)
;; Fix slow startup when network is slow. Most visible with Helm and Magit.
(setq tramp-ssh-controlmaster-options "-o ControlMaster=auto -o ControlPath='tramp.%%C' -o ControlPersist=no")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(provide 'main)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;