fix tramp issues with direnv
This commit is contained in:
@@ -73,26 +73,26 @@
|
|||||||
(setq remote-file-name-inhibit-auto-save-visited t)
|
(setq remote-file-name-inhibit-auto-save-visited t)
|
||||||
(setq remote-file-name-inhibit-cache nil)
|
(setq remote-file-name-inhibit-cache nil)
|
||||||
(setq remote-file-name-inhibit-locks t)
|
(setq remote-file-name-inhibit-locks t)
|
||||||
(setq tramp-auto-save-directory emacs-tmp-dir)
|
;;(setq tramp-auto-save-directory emacs-tmp-dir)
|
||||||
(setq tramp-copy-size-limit (* 1024 1024))
|
;;(setq tramp-copy-size-limit (* 1024 1024))
|
||||||
(setq tramp-persistency-file-name (format "%s/tramp" emacs-tmp-dir))
|
;;(setq tramp-persistency-file-name (format "%s/tramp" emacs-tmp-dir))
|
||||||
(setq tramp-use-scp-direct-remote-copying t)
|
;;(setq tramp-use-scp-direct-remote-copying t)
|
||||||
(setq tramp-use-ssh-controlmaster-options nil)
|
;;(setq tramp-use-ssh-controlmaster-options nil)
|
||||||
(setq tramp-verbose 2)
|
;;(setq tramp-verbose 2)
|
||||||
|
|
||||||
(connection-local-set-profile-variables
|
;; (connection-local-set-profile-variables
|
||||||
'remote-direct-async-process
|
;; 'remote-direct-async-process
|
||||||
'((tramp-direct-async-process . t)))
|
;; '((tramp-direct-async-process . t)))
|
||||||
|
|
||||||
(connection-local-set-profiles
|
;; (connection-local-set-profiles
|
||||||
'(:application tramp :protocol "scp")
|
;; '(:application tramp :protocol "scp")
|
||||||
'remote-direct-async-process)
|
;; 'remote-direct-async-process)
|
||||||
|
|
||||||
(setq magit-tramp-pipe-stty-settings 'pty)
|
;;(setq magit-tramp-pipe-stty-settings 'pty)
|
||||||
|
|
||||||
(with-eval-after-load 'tramp
|
;; (with-eval-after-load 'tramp
|
||||||
(with-eval-after-load 'compile
|
;; (with-eval-after-load 'compile
|
||||||
(remove-hook 'compilation-mode-hook #'tramp-compile-disable-ssh-controlmaster-options)))
|
;; (remove-hook 'compilation-mode-hook #'tramp-compile-disable-ssh-controlmaster-options)))
|
||||||
|
|
||||||
;; Disable version control for remote files
|
;; Disable version control for remote files
|
||||||
(setq vc-ignore-dir-regexp
|
(setq vc-ignore-dir-regexp
|
||||||
|
|||||||
Reference in New Issue
Block a user